Tabnine Logo
UpdateTagDetails
Code IndexAdd Tabnine to your IDE (free)

How to use
UpdateTagDetails
in
com.oracle.bmc.identity.model

Best Java code snippets using com.oracle.bmc.identity.model.UpdateTagDetails (Showing top 4 results out of 315)

origin: oracle/oci-java-sdk

public UpdateTagDetails build() {
  UpdateTagDetails __instance__ =
      new UpdateTagDetails(
          description, isRetired, freeformTags, definedTags, isCostTracking);
  __instance__.__explicitlySet__.addAll(__explicitlySet__);
  return __instance__;
}
origin: oracle/oci-java-sdk

  @com.fasterxml.jackson.annotation.JsonIgnore
  public Builder copy(UpdateTagDetails o) {
    Builder copiedBuilder =
        description(o.getDescription())
            .isRetired(o.getIsRetired())
            .freeformTags(o.getFreeformTags())
            .definedTags(o.getDefinedTags())
            .isCostTracking(o.getIsCostTracking());
    copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__);
    return copiedBuilder;
  }
}
origin: oracle/oci-java-sdk

public static Tag updateTag(
    Identity client,
    String tagNamespaceId,
    String name,
    String description,
    boolean isCostTrackingTag) {
  UpdateTagDetails updateTagDetails =
      UpdateTagDetails.builder()
          .isCostTracking(isCostTrackingTag)
          .description(description)
          .build();
  try {
    Tag tag =
        client.updateTag(
                UpdateTagRequest.builder()
                    .tagName(name)
                    .tagNamespaceId(tagNamespaceId)
                    .updateTagDetails(updateTagDetails)
                    .build())
            .getTag();
    if (tag == null) {
      throw new RuntimeException("Tag update fails with " + updateTagDetails.toString());
    }
    System.out.println("Tag" + tag + " updated successfully");
    return tag;
  } catch (Exception ex) {
    throw new RuntimeException("Tag update fails with error:" + ex.getMessage());
  }
}
origin: oracle/oci-java-sdk

            .tagName(tagOneName)
            .updateTagDetails(
                UpdateTagDetails.builder().isRetired(true).build())
            .build());
System.out.printf("Updated tag (retired): %s\n", updateTagOneResponse.getTag());
            .tagName(tagOneName)
            .updateTagDetails(
                UpdateTagDetails.builder().isRetired(false).build())
            .build());
System.out.println("Updated tag (reactivated): " + updateTagOneResponse.getTag());
com.oracle.bmc.identity.modelUpdateTagDetails

Javadoc


Note: Objects should always be created or deserialized using the Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the Builder, which maintain a set of all explicitly set fields called #__explicitlySet__. The #hashCode() and #equals(Object) methods are implemented to take #__explicitlySet__ into account. The constructor, on the other hand, does not set #__explicitlySet__(since the constructor cannot distinguish explicit null from unset null).

Most used methods

  • <init>
  • builder
    Create a new builder.
  • getDefinedTags
  • getDescription
  • getFreeformTags
  • getIsCostTracking
  • getIsRetired
  • toString

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Menu (java.awt)
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Reference (javax.naming)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now