congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Permission (java.security)
    Legacy security code; do not use.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 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