com.amazonaws.services.dlm.model.transform.GetLifecyclePoliciesRequestMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-dlm Show documentation
Show all versions of aws-java-sdk-dlm Show documentation
The AWS Java SDK for Amazon Data Lifecycle Manager module holds the client classes that are used for communicating with Amazon Data Lifecycle Manager Service
/*
* 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.dlm.model.transform;
import java.util.List;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.dlm.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* GetLifecyclePoliciesRequestMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class GetLifecyclePoliciesRequestMarshaller {
private static final MarshallingInfo POLICYIDS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.QUERY_PARAM)
.marshallLocationName("policyIds").build();
private static final MarshallingInfo STATE_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.QUERY_PARAM)
.marshallLocationName("state").build();
private static final MarshallingInfo RESOURCETYPES_BINDING = MarshallingInfo.builder(MarshallingType.LIST)
.marshallLocation(MarshallLocation.QUERY_PARAM).marshallLocationName("resourceTypes").build();
private static final MarshallingInfo TARGETTAGS_BINDING = MarshallingInfo.builder(MarshallingType.LIST)
.marshallLocation(MarshallLocation.QUERY_PARAM).marshallLocationName("targetTags").build();
private static final MarshallingInfo TAGSTOADD_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.QUERY_PARAM)
.marshallLocationName("tagsToAdd").build();
private static final MarshallingInfo DEFAULTPOLICYTYPE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.QUERY_PARAM).marshallLocationName("defaultPolicyType").build();
private static final GetLifecyclePoliciesRequestMarshaller instance = new GetLifecyclePoliciesRequestMarshaller();
public static GetLifecyclePoliciesRequestMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(GetLifecyclePoliciesRequest getLifecyclePoliciesRequest, ProtocolMarshaller protocolMarshaller) {
if (getLifecyclePoliciesRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(getLifecyclePoliciesRequest.getPolicyIds(), POLICYIDS_BINDING);
protocolMarshaller.marshall(getLifecyclePoliciesRequest.getState(), STATE_BINDING);
protocolMarshaller.marshall(getLifecyclePoliciesRequest.getResourceTypes(), RESOURCETYPES_BINDING);
protocolMarshaller.marshall(getLifecyclePoliciesRequest.getTargetTags(), TARGETTAGS_BINDING);
protocolMarshaller.marshall(getLifecyclePoliciesRequest.getTagsToAdd(), TAGSTOADD_BINDING);
protocolMarshaller.marshall(getLifecyclePoliciesRequest.getDefaultPolicyType(), DEFAULTPOLICYTYPE_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy