com.amazonaws.services.pipes.model.transform.PipeTargetEcsTaskParametersMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-pipes Show documentation
Show all versions of aws-java-sdk-pipes Show documentation
The AWS Java SDK for Amazon EventBridge Pipes module holds the client classes that are used for communicating with Amazon EventBridge Pipes Service
The newest version!
/*
* 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.pipes.model.transform;
import java.util.List;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.pipes.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* PipeTargetEcsTaskParametersMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class PipeTargetEcsTaskParametersMarshaller {
private static final MarshallingInfo TASKDEFINITIONARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TaskDefinitionArn").build();
private static final MarshallingInfo TASKCOUNT_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("TaskCount").build();
private static final MarshallingInfo LAUNCHTYPE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("LaunchType").build();
private static final MarshallingInfo NETWORKCONFIGURATION_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("NetworkConfiguration").build();
private static final MarshallingInfo PLATFORMVERSION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("PlatformVersion").build();
private static final MarshallingInfo GROUP_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Group").build();
private static final MarshallingInfo CAPACITYPROVIDERSTRATEGY_BINDING = MarshallingInfo.builder(MarshallingType.LIST)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CapacityProviderStrategy").build();
private static final MarshallingInfo ENABLEECSMANAGEDTAGS_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("EnableECSManagedTags").build();
private static final MarshallingInfo ENABLEEXECUTECOMMAND_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("EnableExecuteCommand").build();
private static final MarshallingInfo PLACEMENTCONSTRAINTS_BINDING = MarshallingInfo.builder(MarshallingType.LIST)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("PlacementConstraints").build();
private static final MarshallingInfo PLACEMENTSTRATEGY_BINDING = MarshallingInfo.builder(MarshallingType.LIST)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("PlacementStrategy").build();
private static final MarshallingInfo PROPAGATETAGS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("PropagateTags").build();
private static final MarshallingInfo REFERENCEID_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ReferenceId").build();
private static final MarshallingInfo OVERRIDES_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("Overrides").build();
private static final MarshallingInfo TAGS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Tags").build();
private static final PipeTargetEcsTaskParametersMarshaller instance = new PipeTargetEcsTaskParametersMarshaller();
public static PipeTargetEcsTaskParametersMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(PipeTargetEcsTaskParameters pipeTargetEcsTaskParameters, ProtocolMarshaller protocolMarshaller) {
if (pipeTargetEcsTaskParameters == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getTaskDefinitionArn(), TASKDEFINITIONARN_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getTaskCount(), TASKCOUNT_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getLaunchType(), LAUNCHTYPE_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getNetworkConfiguration(), NETWORKCONFIGURATION_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getPlatformVersion(), PLATFORMVERSION_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getGroup(), GROUP_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getCapacityProviderStrategy(), CAPACITYPROVIDERSTRATEGY_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getEnableECSManagedTags(), ENABLEECSMANAGEDTAGS_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getEnableExecuteCommand(), ENABLEEXECUTECOMMAND_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getPlacementConstraints(), PLACEMENTCONSTRAINTS_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getPlacementStrategy(), PLACEMENTSTRATEGY_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getPropagateTags(), PROPAGATETAGS_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getReferenceId(), REFERENCEID_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getOverrides(), OVERRIDES_BINDING);
protocolMarshaller.marshall(pipeTargetEcsTaskParameters.getTags(), TAGS_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy