Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
software.amazon.awssdk.services.datazone.model.GetDomainResponse Maven / Gradle / Ivy
Go to download
The AWS Java SDK for Data Zone module holds the client classes that are used for
communicating with Data Zone.
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.datazone.model;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
import software.amazon.awssdk.core.util.SdkAutoConstructMap;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public final class GetDomainResponse extends DataZoneResponse implements
ToCopyableBuilder {
private static final SdkField ARN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("arn")
.getter(getter(GetDomainResponse::arn)).setter(setter(Builder::arn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("arn").build()).build();
private static final SdkField CREATED_AT_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("createdAt").getter(getter(GetDomainResponse::createdAt)).setter(setter(Builder::createdAt))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("createdAt").build()).build();
private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("description").getter(getter(GetDomainResponse::description)).setter(setter(Builder::description))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("description").build()).build();
private static final SdkField DOMAIN_EXECUTION_ROLE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("domainExecutionRole").getter(getter(GetDomainResponse::domainExecutionRole))
.setter(setter(Builder::domainExecutionRole))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("domainExecutionRole").build())
.build();
private static final SdkField ID_FIELD = SdkField. builder(MarshallingType.STRING).memberName("id")
.getter(getter(GetDomainResponse::id)).setter(setter(Builder::id))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("id").build()).build();
private static final SdkField KMS_KEY_IDENTIFIER_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("kmsKeyIdentifier").getter(getter(GetDomainResponse::kmsKeyIdentifier))
.setter(setter(Builder::kmsKeyIdentifier))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("kmsKeyIdentifier").build()).build();
private static final SdkField LAST_UPDATED_AT_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("lastUpdatedAt").getter(getter(GetDomainResponse::lastUpdatedAt)).setter(setter(Builder::lastUpdatedAt))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("lastUpdatedAt").build()).build();
private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("name")
.getter(getter(GetDomainResponse::name)).setter(setter(Builder::name))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("name").build()).build();
private static final SdkField PORTAL_URL_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("portalUrl").getter(getter(GetDomainResponse::portalUrl)).setter(setter(Builder::portalUrl))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("portalUrl").build()).build();
private static final SdkField ROOT_DOMAIN_UNIT_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("rootDomainUnitId").getter(getter(GetDomainResponse::rootDomainUnitId))
.setter(setter(Builder::rootDomainUnitId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("rootDomainUnitId").build()).build();
private static final SdkField SINGLE_SIGN_ON_FIELD = SdkField. builder(MarshallingType.SDK_POJO)
.memberName("singleSignOn").getter(getter(GetDomainResponse::singleSignOn)).setter(setter(Builder::singleSignOn))
.constructor(SingleSignOn::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("singleSignOn").build()).build();
private static final SdkField STATUS_FIELD = SdkField. builder(MarshallingType.STRING).memberName("status")
.getter(getter(GetDomainResponse::statusAsString)).setter(setter(Builder::status))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("status").build()).build();
private static final SdkField> TAGS_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("tags")
.getter(getter(GetDomainResponse::tags))
.setter(setter(Builder::tags))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("tags").build(),
MapTrait.builder()
.keyLocationName("key")
.valueLocationName("value")
.valueFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("value").build()).build()).build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ARN_FIELD, CREATED_AT_FIELD,
DESCRIPTION_FIELD, DOMAIN_EXECUTION_ROLE_FIELD, ID_FIELD, KMS_KEY_IDENTIFIER_FIELD, LAST_UPDATED_AT_FIELD,
NAME_FIELD, PORTAL_URL_FIELD, ROOT_DOMAIN_UNIT_ID_FIELD, SINGLE_SIGN_ON_FIELD, STATUS_FIELD, TAGS_FIELD));
private final String arn;
private final Instant createdAt;
private final String description;
private final String domainExecutionRole;
private final String id;
private final String kmsKeyIdentifier;
private final Instant lastUpdatedAt;
private final String name;
private final String portalUrl;
private final String rootDomainUnitId;
private final SingleSignOn singleSignOn;
private final String status;
private final Map tags;
private GetDomainResponse(BuilderImpl builder) {
super(builder);
this.arn = builder.arn;
this.createdAt = builder.createdAt;
this.description = builder.description;
this.domainExecutionRole = builder.domainExecutionRole;
this.id = builder.id;
this.kmsKeyIdentifier = builder.kmsKeyIdentifier;
this.lastUpdatedAt = builder.lastUpdatedAt;
this.name = builder.name;
this.portalUrl = builder.portalUrl;
this.rootDomainUnitId = builder.rootDomainUnitId;
this.singleSignOn = builder.singleSignOn;
this.status = builder.status;
this.tags = builder.tags;
}
/**
*
* The ARN of the specified Amazon DataZone domain.
*
*
* @return The ARN of the specified Amazon DataZone domain.
*/
public final String arn() {
return arn;
}
/**
*
* The timestamp of when the Amazon DataZone domain was created.
*
*
* @return The timestamp of when the Amazon DataZone domain was created.
*/
public final Instant createdAt() {
return createdAt;
}
/**
*
* The description of the Amazon DataZone domain.
*
*
* @return The description of the Amazon DataZone domain.
*/
public final String description() {
return description;
}
/**
*
* The domain execution role with which the Amazon DataZone domain is created.
*
*
* @return The domain execution role with which the Amazon DataZone domain is created.
*/
public final String domainExecutionRole() {
return domainExecutionRole;
}
/**
*
* The identifier of the specified Amazon DataZone domain.
*
*
* @return The identifier of the specified Amazon DataZone domain.
*/
public final String id() {
return id;
}
/**
*
* The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the Amazon
* DataZone domain, metadata, and reporting data.
*
*
* @return The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the
* Amazon DataZone domain, metadata, and reporting data.
*/
public final String kmsKeyIdentifier() {
return kmsKeyIdentifier;
}
/**
*
* The timestamp of when the Amazon DataZone domain was last updated.
*
*
* @return The timestamp of when the Amazon DataZone domain was last updated.
*/
public final Instant lastUpdatedAt() {
return lastUpdatedAt;
}
/**
*
* The name of the Amazon DataZone domain.
*
*
* @return The name of the Amazon DataZone domain.
*/
public final String name() {
return name;
}
/**
*
* The URL of the data portal for this Amazon DataZone domain.
*
*
* @return The URL of the data portal for this Amazon DataZone domain.
*/
public final String portalUrl() {
return portalUrl;
}
/**
*
* The ID of the root domain in Amazon Datazone.
*
*
* @return The ID of the root domain in Amazon Datazone.
*/
public final String rootDomainUnitId() {
return rootDomainUnitId;
}
/**
*
* The single sing-on option of the specified Amazon DataZone domain.
*
*
* @return The single sing-on option of the specified Amazon DataZone domain.
*/
public final SingleSignOn singleSignOn() {
return singleSignOn;
}
/**
*
* The status of the specified Amazon DataZone domain.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #status} will
* return {@link DomainStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #statusAsString}.
*
*
* @return The status of the specified Amazon DataZone domain.
* @see DomainStatus
*/
public final DomainStatus status() {
return DomainStatus.fromValue(status);
}
/**
*
* The status of the specified Amazon DataZone domain.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #status} will
* return {@link DomainStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #statusAsString}.
*
*
* @return The status of the specified Amazon DataZone domain.
* @see DomainStatus
*/
public final String statusAsString() {
return status;
}
/**
* For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
* the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
* because the SDK will never return a null collection or map, but you may need to differentiate between the service
* returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
* if a value for the property was specified in the request builder, and false if a value was not specified.
*/
public final boolean hasTags() {
return tags != null && !(tags instanceof SdkAutoConstructMap);
}
/**
*
* The tags specified for the Amazon DataZone domain.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasTags} method.
*
*
* @return The tags specified for the Amazon DataZone domain.
*/
public final Map tags() {
return tags;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(arn());
hashCode = 31 * hashCode + Objects.hashCode(createdAt());
hashCode = 31 * hashCode + Objects.hashCode(description());
hashCode = 31 * hashCode + Objects.hashCode(domainExecutionRole());
hashCode = 31 * hashCode + Objects.hashCode(id());
hashCode = 31 * hashCode + Objects.hashCode(kmsKeyIdentifier());
hashCode = 31 * hashCode + Objects.hashCode(lastUpdatedAt());
hashCode = 31 * hashCode + Objects.hashCode(name());
hashCode = 31 * hashCode + Objects.hashCode(portalUrl());
hashCode = 31 * hashCode + Objects.hashCode(rootDomainUnitId());
hashCode = 31 * hashCode + Objects.hashCode(singleSignOn());
hashCode = 31 * hashCode + Objects.hashCode(statusAsString());
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof GetDomainResponse)) {
return false;
}
GetDomainResponse other = (GetDomainResponse) obj;
return Objects.equals(arn(), other.arn()) && Objects.equals(createdAt(), other.createdAt())
&& Objects.equals(description(), other.description())
&& Objects.equals(domainExecutionRole(), other.domainExecutionRole()) && Objects.equals(id(), other.id())
&& Objects.equals(kmsKeyIdentifier(), other.kmsKeyIdentifier())
&& Objects.equals(lastUpdatedAt(), other.lastUpdatedAt()) && Objects.equals(name(), other.name())
&& Objects.equals(portalUrl(), other.portalUrl()) && Objects.equals(rootDomainUnitId(), other.rootDomainUnitId())
&& Objects.equals(singleSignOn(), other.singleSignOn())
&& Objects.equals(statusAsString(), other.statusAsString()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("GetDomainResponse").add("Arn", arn()).add("CreatedAt", createdAt())
.add("Description", description()).add("DomainExecutionRole", domainExecutionRole()).add("Id", id())
.add("KmsKeyIdentifier", kmsKeyIdentifier()).add("LastUpdatedAt", lastUpdatedAt()).add("Name", name())
.add("PortalUrl", portalUrl()).add("RootDomainUnitId", rootDomainUnitId()).add("SingleSignOn", singleSignOn())
.add("Status", statusAsString()).add("Tags", hasTags() ? tags() : null).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "arn":
return Optional.ofNullable(clazz.cast(arn()));
case "createdAt":
return Optional.ofNullable(clazz.cast(createdAt()));
case "description":
return Optional.ofNullable(clazz.cast(description()));
case "domainExecutionRole":
return Optional.ofNullable(clazz.cast(domainExecutionRole()));
case "id":
return Optional.ofNullable(clazz.cast(id()));
case "kmsKeyIdentifier":
return Optional.ofNullable(clazz.cast(kmsKeyIdentifier()));
case "lastUpdatedAt":
return Optional.ofNullable(clazz.cast(lastUpdatedAt()));
case "name":
return Optional.ofNullable(clazz.cast(name()));
case "portalUrl":
return Optional.ofNullable(clazz.cast(portalUrl()));
case "rootDomainUnitId":
return Optional.ofNullable(clazz.cast(rootDomainUnitId()));
case "singleSignOn":
return Optional.ofNullable(clazz.cast(singleSignOn()));
case "status":
return Optional.ofNullable(clazz.cast(statusAsString()));
case "tags":
return Optional.ofNullable(clazz.cast(tags()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function getter(Function g) {
return obj -> g.apply((GetDomainResponse) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends DataZoneResponse.Builder, SdkPojo, CopyableBuilder {
/**
*
* The ARN of the specified Amazon DataZone domain.
*
*
* @param arn
* The ARN of the specified Amazon DataZone domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder arn(String arn);
/**
*
* The timestamp of when the Amazon DataZone domain was created.
*
*
* @param createdAt
* The timestamp of when the Amazon DataZone domain was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder createdAt(Instant createdAt);
/**
*
* The description of the Amazon DataZone domain.
*
*
* @param description
* The description of the Amazon DataZone domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder description(String description);
/**
*
* The domain execution role with which the Amazon DataZone domain is created.
*
*
* @param domainExecutionRole
* The domain execution role with which the Amazon DataZone domain is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainExecutionRole(String domainExecutionRole);
/**
*
* The identifier of the specified Amazon DataZone domain.
*
*
* @param id
* The identifier of the specified Amazon DataZone domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder id(String id);
/**
*
* The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the Amazon
* DataZone domain, metadata, and reporting data.
*
*
* @param kmsKeyIdentifier
* The identifier of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt the
* Amazon DataZone domain, metadata, and reporting data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder kmsKeyIdentifier(String kmsKeyIdentifier);
/**
*
* The timestamp of when the Amazon DataZone domain was last updated.
*
*
* @param lastUpdatedAt
* The timestamp of when the Amazon DataZone domain was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lastUpdatedAt(Instant lastUpdatedAt);
/**
*
* The name of the Amazon DataZone domain.
*
*
* @param name
* The name of the Amazon DataZone domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder name(String name);
/**
*
* The URL of the data portal for this Amazon DataZone domain.
*
*
* @param portalUrl
* The URL of the data portal for this Amazon DataZone domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder portalUrl(String portalUrl);
/**
*
* The ID of the root domain in Amazon Datazone.
*
*
* @param rootDomainUnitId
* The ID of the root domain in Amazon Datazone.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder rootDomainUnitId(String rootDomainUnitId);
/**
*
* The single sing-on option of the specified Amazon DataZone domain.
*
*
* @param singleSignOn
* The single sing-on option of the specified Amazon DataZone domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder singleSignOn(SingleSignOn singleSignOn);
/**
*
* The single sing-on option of the specified Amazon DataZone domain.
*
* This is a convenience method that creates an instance of the {@link SingleSignOn.Builder} avoiding the need
* to create one manually via {@link SingleSignOn#builder()}.
*
*
* When the {@link Consumer} completes, {@link SingleSignOn.Builder#build()} is called immediately and its
* result is passed to {@link #singleSignOn(SingleSignOn)}.
*
* @param singleSignOn
* a consumer that will call methods on {@link SingleSignOn.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #singleSignOn(SingleSignOn)
*/
default Builder singleSignOn(Consumer singleSignOn) {
return singleSignOn(SingleSignOn.builder().applyMutation(singleSignOn).build());
}
/**
*
* The status of the specified Amazon DataZone domain.
*
*
* @param status
* The status of the specified Amazon DataZone domain.
* @see DomainStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see DomainStatus
*/
Builder status(String status);
/**
*
* The status of the specified Amazon DataZone domain.
*
*
* @param status
* The status of the specified Amazon DataZone domain.
* @see DomainStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see DomainStatus
*/
Builder status(DomainStatus status);
/**
*
* The tags specified for the Amazon DataZone domain.
*
*
* @param tags
* The tags specified for the Amazon DataZone domain.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Map tags);
}
static final class BuilderImpl extends DataZoneResponse.BuilderImpl implements Builder {
private String arn;
private Instant createdAt;
private String description;
private String domainExecutionRole;
private String id;
private String kmsKeyIdentifier;
private Instant lastUpdatedAt;
private String name;
private String portalUrl;
private String rootDomainUnitId;
private SingleSignOn singleSignOn;
private String status;
private Map tags = DefaultSdkAutoConstructMap.getInstance();
private BuilderImpl() {
}
private BuilderImpl(GetDomainResponse model) {
super(model);
arn(model.arn);
createdAt(model.createdAt);
description(model.description);
domainExecutionRole(model.domainExecutionRole);
id(model.id);
kmsKeyIdentifier(model.kmsKeyIdentifier);
lastUpdatedAt(model.lastUpdatedAt);
name(model.name);
portalUrl(model.portalUrl);
rootDomainUnitId(model.rootDomainUnitId);
singleSignOn(model.singleSignOn);
status(model.status);
tags(model.tags);
}
public final String getArn() {
return arn;
}
public final void setArn(String arn) {
this.arn = arn;
}
@Override
public final Builder arn(String arn) {
this.arn = arn;
return this;
}
public final Instant getCreatedAt() {
return createdAt;
}
public final void setCreatedAt(Instant createdAt) {
this.createdAt = createdAt;
}
@Override
public final Builder createdAt(Instant createdAt) {
this.createdAt = createdAt;
return this;
}
public final String getDescription() {
return description;
}
public final void setDescription(String description) {
this.description = description;
}
@Override
public final Builder description(String description) {
this.description = description;
return this;
}
public final String getDomainExecutionRole() {
return domainExecutionRole;
}
public final void setDomainExecutionRole(String domainExecutionRole) {
this.domainExecutionRole = domainExecutionRole;
}
@Override
public final Builder domainExecutionRole(String domainExecutionRole) {
this.domainExecutionRole = domainExecutionRole;
return this;
}
public final String getId() {
return id;
}
public final void setId(String id) {
this.id = id;
}
@Override
public final Builder id(String id) {
this.id = id;
return this;
}
public final String getKmsKeyIdentifier() {
return kmsKeyIdentifier;
}
public final void setKmsKeyIdentifier(String kmsKeyIdentifier) {
this.kmsKeyIdentifier = kmsKeyIdentifier;
}
@Override
public final Builder kmsKeyIdentifier(String kmsKeyIdentifier) {
this.kmsKeyIdentifier = kmsKeyIdentifier;
return this;
}
public final Instant getLastUpdatedAt() {
return lastUpdatedAt;
}
public final void setLastUpdatedAt(Instant lastUpdatedAt) {
this.lastUpdatedAt = lastUpdatedAt;
}
@Override
public final Builder lastUpdatedAt(Instant lastUpdatedAt) {
this.lastUpdatedAt = lastUpdatedAt;
return this;
}
public final String getName() {
return name;
}
public final void setName(String name) {
this.name = name;
}
@Override
public final Builder name(String name) {
this.name = name;
return this;
}
public final String getPortalUrl() {
return portalUrl;
}
public final void setPortalUrl(String portalUrl) {
this.portalUrl = portalUrl;
}
@Override
public final Builder portalUrl(String portalUrl) {
this.portalUrl = portalUrl;
return this;
}
public final String getRootDomainUnitId() {
return rootDomainUnitId;
}
public final void setRootDomainUnitId(String rootDomainUnitId) {
this.rootDomainUnitId = rootDomainUnitId;
}
@Override
public final Builder rootDomainUnitId(String rootDomainUnitId) {
this.rootDomainUnitId = rootDomainUnitId;
return this;
}
public final SingleSignOn.Builder getSingleSignOn() {
return singleSignOn != null ? singleSignOn.toBuilder() : null;
}
public final void setSingleSignOn(SingleSignOn.BuilderImpl singleSignOn) {
this.singleSignOn = singleSignOn != null ? singleSignOn.build() : null;
}
@Override
public final Builder singleSignOn(SingleSignOn singleSignOn) {
this.singleSignOn = singleSignOn;
return this;
}
public final String getStatus() {
return status;
}
public final void setStatus(String status) {
this.status = status;
}
@Override
public final Builder status(String status) {
this.status = status;
return this;
}
@Override
public final Builder status(DomainStatus status) {
this.status(status == null ? null : status.toString());
return this;
}
public final Map getTags() {
if (tags instanceof SdkAutoConstructMap) {
return null;
}
return tags;
}
public final void setTags(Map tags) {
this.tags = TagsCopier.copy(tags);
}
@Override
public final Builder tags(Map tags) {
this.tags = TagsCopier.copy(tags);
return this;
}
@Override
public GetDomainResponse build() {
return new GetDomainResponse(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}