276 lines
12 KiB
C
276 lines
12 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ssm/SSM_EXPORTS.h>
|
|||
|
|
#include <aws/ssm/SSMRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/ssm/model/ResourceDataSyncS3Destination.h>
|
|||
|
|
#include <aws/ssm/model/ResourceDataSyncSource.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace SSM
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_SSM_API CreateResourceDataSyncRequest : public SSMRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
CreateResourceDataSyncRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "CreateResourceDataSync"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the configuration.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSyncName() const{ return m_syncName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the configuration.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SyncNameHasBeenSet() const { return m_syncNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the configuration.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSyncName(const Aws::String& value) { m_syncNameHasBeenSet = true; m_syncName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the configuration.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSyncName(Aws::String&& value) { m_syncNameHasBeenSet = true; m_syncName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the configuration.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSyncName(const char* value) { m_syncNameHasBeenSet = true; m_syncName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the configuration.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithSyncName(const Aws::String& value) { SetSyncName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the configuration.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithSyncName(Aws::String&& value) { SetSyncName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A name for the configuration.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithSyncName(const char* value) { SetSyncName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Amazon S3 configuration details for the sync. This parameter is required if
|
|||
|
|
* the <code>SyncType</code> value is SyncToDestination.</p>
|
|||
|
|
*/
|
|||
|
|
inline const ResourceDataSyncS3Destination& GetS3Destination() const{ return m_s3Destination; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Amazon S3 configuration details for the sync. This parameter is required if
|
|||
|
|
* the <code>SyncType</code> value is SyncToDestination.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool S3DestinationHasBeenSet() const { return m_s3DestinationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Amazon S3 configuration details for the sync. This parameter is required if
|
|||
|
|
* the <code>SyncType</code> value is SyncToDestination.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetS3Destination(const ResourceDataSyncS3Destination& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Amazon S3 configuration details for the sync. This parameter is required if
|
|||
|
|
* the <code>SyncType</code> value is SyncToDestination.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetS3Destination(ResourceDataSyncS3Destination&& value) { m_s3DestinationHasBeenSet = true; m_s3Destination = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Amazon S3 configuration details for the sync. This parameter is required if
|
|||
|
|
* the <code>SyncType</code> value is SyncToDestination.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithS3Destination(const ResourceDataSyncS3Destination& value) { SetS3Destination(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Amazon S3 configuration details for the sync. This parameter is required if
|
|||
|
|
* the <code>SyncType</code> value is SyncToDestination.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithS3Destination(ResourceDataSyncS3Destination&& value) { SetS3Destination(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
|
|||
|
|
* synchronizes data to an S3 bucket for Inventory. If you specify
|
|||
|
|
* <code>SyncToDestination</code>, you must provide a value for
|
|||
|
|
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
|
|||
|
|
* data from a single account and multiple Regions, or multiple AWS accounts and
|
|||
|
|
* Regions, as listed in AWS Organizations for Explorer. If you specify
|
|||
|
|
* <code>SyncFromSource</code>, you must provide a value for
|
|||
|
|
* <code>SyncSource</code>. The default value is
|
|||
|
|
* <code>SyncToDestination</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSyncType() const{ return m_syncType; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
|
|||
|
|
* synchronizes data to an S3 bucket for Inventory. If you specify
|
|||
|
|
* <code>SyncToDestination</code>, you must provide a value for
|
|||
|
|
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
|
|||
|
|
* data from a single account and multiple Regions, or multiple AWS accounts and
|
|||
|
|
* Regions, as listed in AWS Organizations for Explorer. If you specify
|
|||
|
|
* <code>SyncFromSource</code>, you must provide a value for
|
|||
|
|
* <code>SyncSource</code>. The default value is
|
|||
|
|
* <code>SyncToDestination</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SyncTypeHasBeenSet() const { return m_syncTypeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
|
|||
|
|
* synchronizes data to an S3 bucket for Inventory. If you specify
|
|||
|
|
* <code>SyncToDestination</code>, you must provide a value for
|
|||
|
|
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
|
|||
|
|
* data from a single account and multiple Regions, or multiple AWS accounts and
|
|||
|
|
* Regions, as listed in AWS Organizations for Explorer. If you specify
|
|||
|
|
* <code>SyncFromSource</code>, you must provide a value for
|
|||
|
|
* <code>SyncSource</code>. The default value is
|
|||
|
|
* <code>SyncToDestination</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSyncType(const Aws::String& value) { m_syncTypeHasBeenSet = true; m_syncType = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
|
|||
|
|
* synchronizes data to an S3 bucket for Inventory. If you specify
|
|||
|
|
* <code>SyncToDestination</code>, you must provide a value for
|
|||
|
|
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
|
|||
|
|
* data from a single account and multiple Regions, or multiple AWS accounts and
|
|||
|
|
* Regions, as listed in AWS Organizations for Explorer. If you specify
|
|||
|
|
* <code>SyncFromSource</code>, you must provide a value for
|
|||
|
|
* <code>SyncSource</code>. The default value is
|
|||
|
|
* <code>SyncToDestination</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSyncType(Aws::String&& value) { m_syncTypeHasBeenSet = true; m_syncType = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
|
|||
|
|
* synchronizes data to an S3 bucket for Inventory. If you specify
|
|||
|
|
* <code>SyncToDestination</code>, you must provide a value for
|
|||
|
|
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
|
|||
|
|
* data from a single account and multiple Regions, or multiple AWS accounts and
|
|||
|
|
* Regions, as listed in AWS Organizations for Explorer. If you specify
|
|||
|
|
* <code>SyncFromSource</code>, you must provide a value for
|
|||
|
|
* <code>SyncSource</code>. The default value is
|
|||
|
|
* <code>SyncToDestination</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSyncType(const char* value) { m_syncTypeHasBeenSet = true; m_syncType.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
|
|||
|
|
* synchronizes data to an S3 bucket for Inventory. If you specify
|
|||
|
|
* <code>SyncToDestination</code>, you must provide a value for
|
|||
|
|
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
|
|||
|
|
* data from a single account and multiple Regions, or multiple AWS accounts and
|
|||
|
|
* Regions, as listed in AWS Organizations for Explorer. If you specify
|
|||
|
|
* <code>SyncFromSource</code>, you must provide a value for
|
|||
|
|
* <code>SyncSource</code>. The default value is
|
|||
|
|
* <code>SyncToDestination</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithSyncType(const Aws::String& value) { SetSyncType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
|
|||
|
|
* synchronizes data to an S3 bucket for Inventory. If you specify
|
|||
|
|
* <code>SyncToDestination</code>, you must provide a value for
|
|||
|
|
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
|
|||
|
|
* data from a single account and multiple Regions, or multiple AWS accounts and
|
|||
|
|
* Regions, as listed in AWS Organizations for Explorer. If you specify
|
|||
|
|
* <code>SyncFromSource</code>, you must provide a value for
|
|||
|
|
* <code>SyncSource</code>. The default value is
|
|||
|
|
* <code>SyncToDestination</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithSyncType(Aws::String&& value) { SetSyncType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>SyncToDestination</code> to create a resource data sync that
|
|||
|
|
* synchronizes data to an S3 bucket for Inventory. If you specify
|
|||
|
|
* <code>SyncToDestination</code>, you must provide a value for
|
|||
|
|
* <code>S3Destination</code>. Specify <code>SyncFromSource</code> to synchronize
|
|||
|
|
* data from a single account and multiple Regions, or multiple AWS accounts and
|
|||
|
|
* Regions, as listed in AWS Organizations for Explorer. If you specify
|
|||
|
|
* <code>SyncFromSource</code>, you must provide a value for
|
|||
|
|
* <code>SyncSource</code>. The default value is
|
|||
|
|
* <code>SyncToDestination</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithSyncType(const char* value) { SetSyncType(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify information about the data sources to synchronize. This parameter is
|
|||
|
|
* required if the <code>SyncType</code> value is SyncFromSource.</p>
|
|||
|
|
*/
|
|||
|
|
inline const ResourceDataSyncSource& GetSyncSource() const{ return m_syncSource; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify information about the data sources to synchronize. This parameter is
|
|||
|
|
* required if the <code>SyncType</code> value is SyncFromSource.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SyncSourceHasBeenSet() const { return m_syncSourceHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify information about the data sources to synchronize. This parameter is
|
|||
|
|
* required if the <code>SyncType</code> value is SyncFromSource.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSyncSource(const ResourceDataSyncSource& value) { m_syncSourceHasBeenSet = true; m_syncSource = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify information about the data sources to synchronize. This parameter is
|
|||
|
|
* required if the <code>SyncType</code> value is SyncFromSource.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSyncSource(ResourceDataSyncSource&& value) { m_syncSourceHasBeenSet = true; m_syncSource = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify information about the data sources to synchronize. This parameter is
|
|||
|
|
* required if the <code>SyncType</code> value is SyncFromSource.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithSyncSource(const ResourceDataSyncSource& value) { SetSyncSource(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify information about the data sources to synchronize. This parameter is
|
|||
|
|
* required if the <code>SyncType</code> value is SyncFromSource.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateResourceDataSyncRequest& WithSyncSource(ResourceDataSyncSource&& value) { SetSyncSource(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_syncName;
|
|||
|
|
bool m_syncNameHasBeenSet;
|
|||
|
|
|
|||
|
|
ResourceDataSyncS3Destination m_s3Destination;
|
|||
|
|
bool m_s3DestinationHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_syncType;
|
|||
|
|
bool m_syncTypeHasBeenSet;
|
|||
|
|
|
|||
|
|
ResourceDataSyncSource m_syncSource;
|
|||
|
|
bool m_syncSourceHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SSM
|
|||
|
|
} // namespace Aws
|