com.amazonaws.services.backup.model.transform.RecoveryPointByBackupVaultMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-backup Show documentation
Show all versions of aws-java-sdk-backup Show documentation
The AWS Java SDK for AWS Backup module holds the client classes that are used for communicating with AWS Backup 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.backup.model.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.backup.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* RecoveryPointByBackupVaultMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class RecoveryPointByBackupVaultMarshaller {
private static final MarshallingInfo RECOVERYPOINTARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("RecoveryPointArn").build();
private static final MarshallingInfo BACKUPVAULTNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("BackupVaultName").build();
private static final MarshallingInfo BACKUPVAULTARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("BackupVaultArn").build();
private static final MarshallingInfo SOURCEBACKUPVAULTARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("SourceBackupVaultArn").build();
private static final MarshallingInfo RESOURCEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ResourceArn").build();
private static final MarshallingInfo RESOURCETYPE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ResourceType").build();
private static final MarshallingInfo CREATEDBY_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CreatedBy").build();
private static final MarshallingInfo IAMROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("IamRoleArn").build();
private static final MarshallingInfo STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("Status").build();
private static final MarshallingInfo STATUSMESSAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("StatusMessage").build();
private static final MarshallingInfo CREATIONDATE_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CreationDate").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo COMPLETIONDATE_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CompletionDate").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo BACKUPSIZEINBYTES_BINDING = MarshallingInfo.builder(MarshallingType.LONG)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("BackupSizeInBytes").build();
private static final MarshallingInfo CALCULATEDLIFECYCLE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CalculatedLifecycle").build();
private static final MarshallingInfo LIFECYCLE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("Lifecycle").build();
private static final MarshallingInfo ENCRYPTIONKEYARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("EncryptionKeyArn").build();
private static final MarshallingInfo ISENCRYPTED_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("IsEncrypted").build();
private static final MarshallingInfo LASTRESTORETIME_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("LastRestoreTime").timestampFormat("unixTimestamp").build();
private static final MarshallingInfo PARENTRECOVERYPOINTARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ParentRecoveryPointArn").build();
private static final MarshallingInfo COMPOSITEMEMBERIDENTIFIER_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("CompositeMemberIdentifier").build();
private static final MarshallingInfo ISPARENT_BINDING = MarshallingInfo.builder(MarshallingType.BOOLEAN)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("IsParent").build();
private static final MarshallingInfo RESOURCENAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("ResourceName").build();
private static final MarshallingInfo VAULTTYPE_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("VaultType").build();
private static final RecoveryPointByBackupVaultMarshaller instance = new RecoveryPointByBackupVaultMarshaller();
public static RecoveryPointByBackupVaultMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(RecoveryPointByBackupVault recoveryPointByBackupVault, ProtocolMarshaller protocolMarshaller) {
if (recoveryPointByBackupVault == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(recoveryPointByBackupVault.getRecoveryPointArn(), RECOVERYPOINTARN_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getBackupVaultName(), BACKUPVAULTNAME_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getBackupVaultArn(), BACKUPVAULTARN_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getSourceBackupVaultArn(), SOURCEBACKUPVAULTARN_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getResourceArn(), RESOURCEARN_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getResourceType(), RESOURCETYPE_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getCreatedBy(), CREATEDBY_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getIamRoleArn(), IAMROLEARN_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getStatus(), STATUS_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getStatusMessage(), STATUSMESSAGE_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getCreationDate(), CREATIONDATE_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getCompletionDate(), COMPLETIONDATE_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getBackupSizeInBytes(), BACKUPSIZEINBYTES_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getCalculatedLifecycle(), CALCULATEDLIFECYCLE_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getLifecycle(), LIFECYCLE_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getEncryptionKeyArn(), ENCRYPTIONKEYARN_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getIsEncrypted(), ISENCRYPTED_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getLastRestoreTime(), LASTRESTORETIME_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getParentRecoveryPointArn(), PARENTRECOVERYPOINTARN_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getCompositeMemberIdentifier(), COMPOSITEMEMBERIDENTIFIER_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getIsParent(), ISPARENT_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getResourceName(), RESOURCENAME_BINDING);
protocolMarshaller.marshall(recoveryPointByBackupVault.getVaultType(), VAULTTYPE_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy