protected ResourceImpl(String name, InnerModelT innerObject) { super(name, innerObject); if (innerObject.getTags() == null) { innerObject.withTags(new TreeMap<String, String>()); } }
protected ResourceImpl(String name, InnerModelT innerObject) { super(name, innerObject); if (innerObject.getTags() == null) { innerObject.withTags(new TreeMap<String, String>()); } }
/** * Specifies tags for the resource as a {@link Map}. * @param tags a {@link Map} of tags * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTags(Map<String, String> tags) { this.inner().withTags(new HashMap<>(tags)); return (FluentModelImplT) this; }
/** * Specifies tags for the resource as a {@link Map}. * @param tags a {@link Map} of tags * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTags(Map<String, String> tags) { this.inner().withTags(new HashMap<>(tags)); return (FluentModelImplT) this; }
/** * Specifies tags for the resource as a {@link Map}. * @param tags a {@link Map} of tags * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTags(Map<String, String> tags) { this.inner().withTags(new HashMap<>(tags)); return (FluentModelImplT) this; }
/** * Specifies tags for the resource as a {@link Map}. * @param tags a {@link Map} of tags * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTags(Map<String, String> tags) { this.inner().withTags(new HashMap<>(tags)); return (FluentModelImplT) this; }
protected ResourceImpl(String name, InnerModelT innerObject) { super(name, innerObject); if (innerObject.getTags() == null) { innerObject.withTags(new TreeMap<String, String>()); } }
/** * Specifies tags for the resource as a {@link Map}. * @param tags a {@link Map} of tags * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTags(Map<String, String> tags) { this.inner().withTags(new HashMap<>(tags)); return (FluentModelImplT) this; }
/** * Adds a tag to the resource. * @param key the key for the tag * @param value the value for the tag * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTag(String key, String value) { if (this.inner().getTags() == null) { this.inner().withTags(new HashMap<String, String>()); } this.inner().getTags().put(key, value); return (FluentModelImplT) this; }
/** * Adds a tag to the resource. * @param key the key for the tag * @param value the value for the tag * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTag(String key, String value) { if (this.inner().getTags() == null) { this.inner().withTags(new HashMap<String, String>()); } this.inner().getTags().put(key, value); return (FluentModelImplT) this; }
/** * Adds a tag to the resource. * @param key the key for the tag * @param value the value for the tag * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTag(String key, String value) { if (this.inner().getTags() == null) { this.inner().withTags(new HashMap<String, String>()); } this.inner().getTags().put(key, value); return (FluentModelImplT) this; }
/** * Adds a tag to the resource. * @param key the key for the tag * @param value the value for the tag * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTag(String key, String value) { if (this.inner().getTags() == null) { this.inner().withTags(new HashMap<String, String>()); } this.inner().getTags().put(key, value); System.out.println(this.inner().getTags()); return (FluentModelImplT) this; }
/** * Adds a tag to the resource. * @param key the key for the tag * @param value the value for the tag * @return the next stage of the definition/update */ @SuppressWarnings("unchecked") public final FluentModelImplT withTag(String key, String value) { if (this.inner().getTags() == null) { this.inner().withTags(new HashMap<String, String>()); } this.inner().getTags().put(key, value); System.out.println(this.inner().getTags()); return (FluentModelImplT) this; }
Resource resource = new Resource(); resource.withLocation(self.regionName()); resource.withTags(self.tags()); return self.manager().inner().containerGroups() .updateAsync(self.resourceGroupName(), self.name(), resource)
Resource resource = new Resource(); resource.withLocation(self.regionName()); resource.withTags(self.tags()); return self.manager().inner().containerGroups() .updateAsync(self.resourceGroupName(), self.name(), resource)