com.amazonaws.services.sagemaker.model.transform.CreateDomainRequestMarshaller Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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.sagemaker.model.transform;
import java.util.List;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.sagemaker.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* CreateDomainRequestMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class CreateDomainRequestMarshaller {
private static final MarshallingInfo DOMAINNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DomainName").build();
private static final MarshallingInfo AUTHMODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("AuthMode").build();
private static final MarshallingInfo DEFAULTUSERSETTINGS_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DefaultUserSettings").build();
private static final MarshallingInfo DOMAINSETTINGS_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DomainSettings").build();
private static final MarshallingInfo SUBNETIDS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("SubnetIds").build();
private static final MarshallingInfo VPCID_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("VpcId").build();
private static final MarshallingInfo TAGS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Tags").build();
private static final MarshallingInfo APPNETWORKACCESSTYPE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("AppNetworkAccessType").build();
private static final MarshallingInfo HOMEEFSFILESYSTEMKMSKEYID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("HomeEfsFileSystemKmsKeyId").build();
private static final MarshallingInfo KMSKEYID_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("KmsKeyId").build();
private static final MarshallingInfo APPSECURITYGROUPMANAGEMENT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("AppSecurityGroupManagement").build();
private static final MarshallingInfo DEFAULTSPACESETTINGS_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("DefaultSpaceSettings").build();
private static final CreateDomainRequestMarshaller instance = new CreateDomainRequestMarshaller();
public static CreateDomainRequestMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(CreateDomainRequest createDomainRequest, ProtocolMarshaller protocolMarshaller) {
if (createDomainRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(createDomainRequest.getDomainName(), DOMAINNAME_BINDING);
protocolMarshaller.marshall(createDomainRequest.getAuthMode(), AUTHMODE_BINDING);
protocolMarshaller.marshall(createDomainRequest.getDefaultUserSettings(), DEFAULTUSERSETTINGS_BINDING);
protocolMarshaller.marshall(createDomainRequest.getDomainSettings(), DOMAINSETTINGS_BINDING);
protocolMarshaller.marshall(createDomainRequest.getSubnetIds(), SUBNETIDS_BINDING);
protocolMarshaller.marshall(createDomainRequest.getVpcId(), VPCID_BINDING);
protocolMarshaller.marshall(createDomainRequest.getTags(), TAGS_BINDING);
protocolMarshaller.marshall(createDomainRequest.getAppNetworkAccessType(), APPNETWORKACCESSTYPE_BINDING);
protocolMarshaller.marshall(createDomainRequest.getHomeEfsFileSystemKmsKeyId(), HOMEEFSFILESYSTEMKMSKEYID_BINDING);
protocolMarshaller.marshall(createDomainRequest.getKmsKeyId(), KMSKEYID_BINDING);
protocolMarshaller.marshall(createDomainRequest.getAppSecurityGroupManagement(), APPSECURITYGROUPMANAGEMENT_BINDING);
protocolMarshaller.marshall(createDomainRequest.getDefaultSpaceSettings(), DEFAULTSPACESETTINGS_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy