com.amazonaws.services.amplify.model.transform.DomainAssociationMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-amplify Show documentation
Show all versions of aws-java-sdk-amplify Show documentation
The AWS Java SDK for AWS Amplify module holds the client classes that are used for communicating with AWS Amplify Service
The newest version!
/*
* Copyright 2020-2025 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 com.amazonaws.services.amplify.model.transform;
import java.util.List;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.amplify.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* DomainAssociationMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class DomainAssociationMarshaller {
private static final MarshallingInfo DOMAINASSOCIATIONARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("domainAssociationArn").build();
private static final MarshallingInfo DOMAINNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("domainName").build();
private static final MarshallingInfo ENABLEAUTOSUBDOMAIN_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("enableAutoSubDomain").build();
private static final MarshallingInfo AUTOSUBDOMAINCREATIONPATTERNS_BINDING = MarshallingInfo.builder(MarshallingType.LIST)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("autoSubDomainCreationPatterns").build();
private static final MarshallingInfo AUTOSUBDOMAINIAMROLE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("autoSubDomainIAMRole").build();
private static final MarshallingInfo DOMAINSTATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("domainStatus").build();
private static final MarshallingInfo UPDATESTATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("updateStatus").build();
private static final MarshallingInfo STATUSREASON_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("statusReason").build();
private static final MarshallingInfo CERTIFICATEVERIFICATIONDNSRECORD_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("certificateVerificationDNSRecord").build();
private static final MarshallingInfo SUBDOMAINS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("subDomains").build();
private static final MarshallingInfo CERTIFICATE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("certificate").build();
private static final DomainAssociationMarshaller instance = new DomainAssociationMarshaller();
public static DomainAssociationMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(DomainAssociation domainAssociation, ProtocolMarshaller protocolMarshaller) {
if (domainAssociation == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(domainAssociation.getDomainAssociationArn(), DOMAINASSOCIATIONARN_BINDING);
protocolMarshaller.marshall(domainAssociation.getDomainName(), DOMAINNAME_BINDING);
protocolMarshaller.marshall(domainAssociation.getEnableAutoSubDomain(), ENABLEAUTOSUBDOMAIN_BINDING);
protocolMarshaller.marshall(domainAssociation.getAutoSubDomainCreationPatterns(), AUTOSUBDOMAINCREATIONPATTERNS_BINDING);
protocolMarshaller.marshall(domainAssociation.getAutoSubDomainIAMRole(), AUTOSUBDOMAINIAMROLE_BINDING);
protocolMarshaller.marshall(domainAssociation.getDomainStatus(), DOMAINSTATUS_BINDING);
protocolMarshaller.marshall(domainAssociation.getUpdateStatus(), UPDATESTATUS_BINDING);
protocolMarshaller.marshall(domainAssociation.getStatusReason(), STATUSREASON_BINDING);
protocolMarshaller.marshall(domainAssociation.getCertificateVerificationDNSRecord(), CERTIFICATEVERIFICATIONDNSRECORD_BINDING);
protocolMarshaller.marshall(domainAssociation.getSubDomains(), SUBDOMAINS_BINDING);
protocolMarshaller.marshall(domainAssociation.getCertificate(), CERTIFICATE_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy