feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CloudWatchEvents
{
namespace CloudWatchEventsEndpoint
{
AWS_CLOUDWATCHEVENTS_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace CloudWatchEventsEndpoint
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_CLOUDWATCHEVENTS_API CloudWatchEventsErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,80 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/events/CloudWatchEvents_EXPORTS.h>
namespace Aws
{
namespace CloudWatchEvents
{
enum class CloudWatchEventsErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
CONCURRENT_MODIFICATION= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL,
INVALID_EVENT_PATTERN,
INVALID_STATE,
LIMIT_EXCEEDED,
MANAGED_RULE,
OPERATION_DISABLED,
POLICY_LENGTH_EXCEEDED,
RESOURCE_ALREADY_EXISTS
};
class AWS_CLOUDWATCHEVENTS_API CloudWatchEventsError : public Aws::Client::AWSError<CloudWatchEventsErrors>
{
public:
CloudWatchEventsError() {}
CloudWatchEventsError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<CloudWatchEventsErrors>(rhs) {}
CloudWatchEventsError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<CloudWatchEventsErrors>(rhs) {}
CloudWatchEventsError(const Aws::Client::AWSError<CloudWatchEventsErrors>& rhs) : Aws::Client::AWSError<CloudWatchEventsErrors>(rhs) {}
CloudWatchEventsError(Aws::Client::AWSError<CloudWatchEventsErrors>&& rhs) : Aws::Client::AWSError<CloudWatchEventsErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace CloudWatchEventsErrorMapper
{
AWS_CLOUDWATCHEVENTS_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace CloudWatchEvents
{
class AWS_CLOUDWATCHEVENTS_API CloudWatchEventsRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~CloudWatchEventsRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2015-10-07"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_CLOUDWATCHEVENTS_EXPORTS
#define AWS_CLOUDWATCHEVENTS_API __declspec(dllexport)
#else
#define AWS_CLOUDWATCHEVENTS_API __declspec(dllimport)
#endif /* AWS_CLOUDWATCHEVENTS_EXPORTS */
#else
#define AWS_CLOUDWATCHEVENTS_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_CLOUDWATCHEVENTS_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ActivateEventSourceRequest : public CloudWatchEventsRequest
{
public:
ActivateEventSourceRequest();
// 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 "ActivateEventSource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the partner event source to activate.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the partner event source to activate.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the partner event source to activate.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the partner event source to activate.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the partner event source to activate.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the partner event source to activate.</p>
*/
inline ActivateEventSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the partner event source to activate.</p>
*/
inline ActivateEventSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the partner event source to activate.</p>
*/
inline ActivateEventSourceRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
enum class AssignPublicIp
{
NOT_SET,
ENABLED,
DISABLED
};
namespace AssignPublicIpMapper
{
AWS_CLOUDWATCHEVENTS_API AssignPublicIp GetAssignPublicIpForName(const Aws::String& name);
AWS_CLOUDWATCHEVENTS_API Aws::String GetNameForAssignPublicIp(AssignPublicIp value);
} // namespace AssignPublicIpMapper
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,229 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/AssignPublicIp.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>This structure specifies the VPC subnets and security groups for the task,
* and whether a public IP address is to be used. This structure is relevant only
* for ECS tasks that use the <code>awsvpc</code> network mode.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/AwsVpcConfiguration">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API AwsVpcConfiguration
{
public:
AwsVpcConfiguration();
AwsVpcConfiguration(Aws::Utils::Json::JsonView jsonValue);
AwsVpcConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline bool SubnetsHasBeenSet() const { return m_subnetsHasBeenSet; }
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline AwsVpcConfiguration& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline AwsVpcConfiguration& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline AwsVpcConfiguration& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline AwsVpcConfiguration& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the subnets associated with the task. These subnets must all be in
* the same VPC. You can specify as many as 16 subnets.</p>
*/
inline AwsVpcConfiguration& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline AwsVpcConfiguration& WithSecurityGroups(const Aws::Vector<Aws::String>& value) { SetSecurityGroups(value); return *this;}
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline AwsVpcConfiguration& WithSecurityGroups(Aws::Vector<Aws::String>&& value) { SetSecurityGroups(std::move(value)); return *this;}
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline AwsVpcConfiguration& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline AwsVpcConfiguration& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the security groups associated with the task. These security groups
* must all be in the same VPC. You can specify as many as five security groups. If
* you do not specify a security group, the default security group for the VPC is
* used.</p>
*/
inline AwsVpcConfiguration& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
/**
* <p>Specifies whether the task's elastic network interface receives a public IP
* address. You can specify <code>ENABLED</code> only when <code>LaunchType</code>
* in <code>EcsParameters</code> is set to <code>FARGATE</code>.</p>
*/
inline const AssignPublicIp& GetAssignPublicIp() const{ return m_assignPublicIp; }
/**
* <p>Specifies whether the task's elastic network interface receives a public IP
* address. You can specify <code>ENABLED</code> only when <code>LaunchType</code>
* in <code>EcsParameters</code> is set to <code>FARGATE</code>.</p>
*/
inline bool AssignPublicIpHasBeenSet() const { return m_assignPublicIpHasBeenSet; }
/**
* <p>Specifies whether the task's elastic network interface receives a public IP
* address. You can specify <code>ENABLED</code> only when <code>LaunchType</code>
* in <code>EcsParameters</code> is set to <code>FARGATE</code>.</p>
*/
inline void SetAssignPublicIp(const AssignPublicIp& value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = value; }
/**
* <p>Specifies whether the task's elastic network interface receives a public IP
* address. You can specify <code>ENABLED</code> only when <code>LaunchType</code>
* in <code>EcsParameters</code> is set to <code>FARGATE</code>.</p>
*/
inline void SetAssignPublicIp(AssignPublicIp&& value) { m_assignPublicIpHasBeenSet = true; m_assignPublicIp = std::move(value); }
/**
* <p>Specifies whether the task's elastic network interface receives a public IP
* address. You can specify <code>ENABLED</code> only when <code>LaunchType</code>
* in <code>EcsParameters</code> is set to <code>FARGATE</code>.</p>
*/
inline AwsVpcConfiguration& WithAssignPublicIp(const AssignPublicIp& value) { SetAssignPublicIp(value); return *this;}
/**
* <p>Specifies whether the task's elastic network interface receives a public IP
* address. You can specify <code>ENABLED</code> only when <code>LaunchType</code>
* in <code>EcsParameters</code> is set to <code>FARGATE</code>.</p>
*/
inline AwsVpcConfiguration& WithAssignPublicIp(AssignPublicIp&& value) { SetAssignPublicIp(std::move(value)); return *this;}
private:
Aws::Vector<Aws::String> m_subnets;
bool m_subnetsHasBeenSet;
Aws::Vector<Aws::String> m_securityGroups;
bool m_securityGroupsHasBeenSet;
AssignPublicIp m_assignPublicIp;
bool m_assignPublicIpHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>The array properties for the submitted job, such as the size of the array.
* The array size can be between 2 and 10,000. If you specify array properties for
* a job, it becomes an array job. This parameter is used only if the target is an
* AWS Batch job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchArrayProperties">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API BatchArrayProperties
{
public:
BatchArrayProperties();
BatchArrayProperties(Aws::Utils::Json::JsonView jsonValue);
BatchArrayProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The size of the array, if this is an array batch job. Valid values are
* integers between 2 and 10,000.</p>
*/
inline int GetSize() const{ return m_size; }
/**
* <p>The size of the array, if this is an array batch job. Valid values are
* integers between 2 and 10,000.</p>
*/
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
/**
* <p>The size of the array, if this is an array batch job. Valid values are
* integers between 2 and 10,000.</p>
*/
inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
/**
* <p>The size of the array, if this is an array batch job. Valid values are
* integers between 2 and 10,000.</p>
*/
inline BatchArrayProperties& WithSize(int value) { SetSize(value); return *this;}
private:
int m_size;
bool m_sizeHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,255 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/BatchArrayProperties.h>
#include <aws/events/model/BatchRetryStrategy.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>The custom parameters to be used when the target is an AWS Batch
* job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchParameters">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API BatchParameters
{
public:
BatchParameters();
BatchParameters(Aws::Utils::Json::JsonView jsonValue);
BatchParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN or name of the job definition to use if the event target is an AWS
* Batch job. This job definition must already exist.</p>
*/
inline const Aws::String& GetJobDefinition() const{ return m_jobDefinition; }
/**
* <p>The ARN or name of the job definition to use if the event target is an AWS
* Batch job. This job definition must already exist.</p>
*/
inline bool JobDefinitionHasBeenSet() const { return m_jobDefinitionHasBeenSet; }
/**
* <p>The ARN or name of the job definition to use if the event target is an AWS
* Batch job. This job definition must already exist.</p>
*/
inline void SetJobDefinition(const Aws::String& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = value; }
/**
* <p>The ARN or name of the job definition to use if the event target is an AWS
* Batch job. This job definition must already exist.</p>
*/
inline void SetJobDefinition(Aws::String&& value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition = std::move(value); }
/**
* <p>The ARN or name of the job definition to use if the event target is an AWS
* Batch job. This job definition must already exist.</p>
*/
inline void SetJobDefinition(const char* value) { m_jobDefinitionHasBeenSet = true; m_jobDefinition.assign(value); }
/**
* <p>The ARN or name of the job definition to use if the event target is an AWS
* Batch job. This job definition must already exist.</p>
*/
inline BatchParameters& WithJobDefinition(const Aws::String& value) { SetJobDefinition(value); return *this;}
/**
* <p>The ARN or name of the job definition to use if the event target is an AWS
* Batch job. This job definition must already exist.</p>
*/
inline BatchParameters& WithJobDefinition(Aws::String&& value) { SetJobDefinition(std::move(value)); return *this;}
/**
* <p>The ARN or name of the job definition to use if the event target is an AWS
* Batch job. This job definition must already exist.</p>
*/
inline BatchParameters& WithJobDefinition(const char* value) { SetJobDefinition(value); return *this;}
/**
* <p>The name to use for this execution of the job, if the target is an AWS Batch
* job.</p>
*/
inline const Aws::String& GetJobName() const{ return m_jobName; }
/**
* <p>The name to use for this execution of the job, if the target is an AWS Batch
* job.</p>
*/
inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
/**
* <p>The name to use for this execution of the job, if the target is an AWS Batch
* job.</p>
*/
inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
/**
* <p>The name to use for this execution of the job, if the target is an AWS Batch
* job.</p>
*/
inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
/**
* <p>The name to use for this execution of the job, if the target is an AWS Batch
* job.</p>
*/
inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
/**
* <p>The name to use for this execution of the job, if the target is an AWS Batch
* job.</p>
*/
inline BatchParameters& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
/**
* <p>The name to use for this execution of the job, if the target is an AWS Batch
* job.</p>
*/
inline BatchParameters& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
/**
* <p>The name to use for this execution of the job, if the target is an AWS Batch
* job.</p>
*/
inline BatchParameters& WithJobName(const char* value) { SetJobName(value); return *this;}
/**
* <p>The array properties for the submitted job, such as the size of the array.
* The array size can be between 2 and 10,000. If you specify array properties for
* a job, it becomes an array job. This parameter is used only if the target is an
* AWS Batch job.</p>
*/
inline const BatchArrayProperties& GetArrayProperties() const{ return m_arrayProperties; }
/**
* <p>The array properties for the submitted job, such as the size of the array.
* The array size can be between 2 and 10,000. If you specify array properties for
* a job, it becomes an array job. This parameter is used only if the target is an
* AWS Batch job.</p>
*/
inline bool ArrayPropertiesHasBeenSet() const { return m_arrayPropertiesHasBeenSet; }
/**
* <p>The array properties for the submitted job, such as the size of the array.
* The array size can be between 2 and 10,000. If you specify array properties for
* a job, it becomes an array job. This parameter is used only if the target is an
* AWS Batch job.</p>
*/
inline void SetArrayProperties(const BatchArrayProperties& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = value; }
/**
* <p>The array properties for the submitted job, such as the size of the array.
* The array size can be between 2 and 10,000. If you specify array properties for
* a job, it becomes an array job. This parameter is used only if the target is an
* AWS Batch job.</p>
*/
inline void SetArrayProperties(BatchArrayProperties&& value) { m_arrayPropertiesHasBeenSet = true; m_arrayProperties = std::move(value); }
/**
* <p>The array properties for the submitted job, such as the size of the array.
* The array size can be between 2 and 10,000. If you specify array properties for
* a job, it becomes an array job. This parameter is used only if the target is an
* AWS Batch job.</p>
*/
inline BatchParameters& WithArrayProperties(const BatchArrayProperties& value) { SetArrayProperties(value); return *this;}
/**
* <p>The array properties for the submitted job, such as the size of the array.
* The array size can be between 2 and 10,000. If you specify array properties for
* a job, it becomes an array job. This parameter is used only if the target is an
* AWS Batch job.</p>
*/
inline BatchParameters& WithArrayProperties(BatchArrayProperties&& value) { SetArrayProperties(std::move(value)); return *this;}
/**
* <p>The retry strategy to use for failed jobs, if the target is an AWS Batch job.
* The retry strategy is the number of times to retry the failed job execution.
* Valid values are 110. When you specify a retry strategy here, it overrides the
* retry strategy defined in the job definition.</p>
*/
inline const BatchRetryStrategy& GetRetryStrategy() const{ return m_retryStrategy; }
/**
* <p>The retry strategy to use for failed jobs, if the target is an AWS Batch job.
* The retry strategy is the number of times to retry the failed job execution.
* Valid values are 110. When you specify a retry strategy here, it overrides the
* retry strategy defined in the job definition.</p>
*/
inline bool RetryStrategyHasBeenSet() const { return m_retryStrategyHasBeenSet; }
/**
* <p>The retry strategy to use for failed jobs, if the target is an AWS Batch job.
* The retry strategy is the number of times to retry the failed job execution.
* Valid values are 110. When you specify a retry strategy here, it overrides the
* retry strategy defined in the job definition.</p>
*/
inline void SetRetryStrategy(const BatchRetryStrategy& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = value; }
/**
* <p>The retry strategy to use for failed jobs, if the target is an AWS Batch job.
* The retry strategy is the number of times to retry the failed job execution.
* Valid values are 110. When you specify a retry strategy here, it overrides the
* retry strategy defined in the job definition.</p>
*/
inline void SetRetryStrategy(BatchRetryStrategy&& value) { m_retryStrategyHasBeenSet = true; m_retryStrategy = std::move(value); }
/**
* <p>The retry strategy to use for failed jobs, if the target is an AWS Batch job.
* The retry strategy is the number of times to retry the failed job execution.
* Valid values are 110. When you specify a retry strategy here, it overrides the
* retry strategy defined in the job definition.</p>
*/
inline BatchParameters& WithRetryStrategy(const BatchRetryStrategy& value) { SetRetryStrategy(value); return *this;}
/**
* <p>The retry strategy to use for failed jobs, if the target is an AWS Batch job.
* The retry strategy is the number of times to retry the failed job execution.
* Valid values are 110. When you specify a retry strategy here, it overrides the
* retry strategy defined in the job definition.</p>
*/
inline BatchParameters& WithRetryStrategy(BatchRetryStrategy&& value) { SetRetryStrategy(std::move(value)); return *this;}
private:
Aws::String m_jobDefinition;
bool m_jobDefinitionHasBeenSet;
Aws::String m_jobName;
bool m_jobNameHasBeenSet;
BatchArrayProperties m_arrayProperties;
bool m_arrayPropertiesHasBeenSet;
BatchRetryStrategy m_retryStrategy;
bool m_retryStrategyHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>The retry strategy to use for failed jobs, if the target is an AWS Batch job.
* If you specify a retry strategy here, it overrides the retry strategy defined in
* the job definition.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/BatchRetryStrategy">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API BatchRetryStrategy
{
public:
BatchRetryStrategy();
BatchRetryStrategy(Aws::Utils::Json::JsonView jsonValue);
BatchRetryStrategy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of times to attempt to retry, if the job fails. Valid values are
* 110.</p>
*/
inline int GetAttempts() const{ return m_attempts; }
/**
* <p>The number of times to attempt to retry, if the job fails. Valid values are
* 110.</p>
*/
inline bool AttemptsHasBeenSet() const { return m_attemptsHasBeenSet; }
/**
* <p>The number of times to attempt to retry, if the job fails. Valid values are
* 110.</p>
*/
inline void SetAttempts(int value) { m_attemptsHasBeenSet = true; m_attempts = value; }
/**
* <p>The number of times to attempt to retry, if the job fails. Valid values are
* 110.</p>
*/
inline BatchRetryStrategy& WithAttempts(int value) { SetAttempts(value); return *this;}
private:
int m_attempts;
bool m_attemptsHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,207 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>A JSON string which you can use to limit the event bus permissions you are
* granting to only accounts that fulfill the condition. Currently, the only
* supported condition is membership in a certain AWS organization. The string must
* contain <code>Type</code>, <code>Key</code>, and <code>Value</code> fields. The
* <code>Value</code> field specifies the ID of the AWS organization. Following is
* an example value for <code>Condition</code>:</p> <p> <code>'{"Type" :
* "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}'</code>
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Condition">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API Condition
{
public:
Condition();
Condition(Aws::Utils::Json::JsonView jsonValue);
Condition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the type of condition. Currently the only supported value is
* <code>StringEquals</code>.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Specifies the type of condition. Currently the only supported value is
* <code>StringEquals</code>.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Specifies the type of condition. Currently the only supported value is
* <code>StringEquals</code>.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Specifies the type of condition. Currently the only supported value is
* <code>StringEquals</code>.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Specifies the type of condition. Currently the only supported value is
* <code>StringEquals</code>.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Specifies the type of condition. Currently the only supported value is
* <code>StringEquals</code>.</p>
*/
inline Condition& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Specifies the type of condition. Currently the only supported value is
* <code>StringEquals</code>.</p>
*/
inline Condition& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Specifies the type of condition. Currently the only supported value is
* <code>StringEquals</code>.</p>
*/
inline Condition& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>Specifies the key for the condition. Currently the only supported key is
* <code>aws:PrincipalOrgID</code>.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>Specifies the key for the condition. Currently the only supported key is
* <code>aws:PrincipalOrgID</code>.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>Specifies the key for the condition. Currently the only supported key is
* <code>aws:PrincipalOrgID</code>.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>Specifies the key for the condition. Currently the only supported key is
* <code>aws:PrincipalOrgID</code>.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>Specifies the key for the condition. Currently the only supported key is
* <code>aws:PrincipalOrgID</code>.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>Specifies the key for the condition. Currently the only supported key is
* <code>aws:PrincipalOrgID</code>.</p>
*/
inline Condition& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>Specifies the key for the condition. Currently the only supported key is
* <code>aws:PrincipalOrgID</code>.</p>
*/
inline Condition& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>Specifies the key for the condition. Currently the only supported key is
* <code>aws:PrincipalOrgID</code>.</p>
*/
inline Condition& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>Specifies the value for the key. Currently, this must be the ID of the
* organization.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>Specifies the value for the key. Currently, this must be the ID of the
* organization.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>Specifies the value for the key. Currently, this must be the ID of the
* organization.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>Specifies the value for the key. Currently, this must be the ID of the
* organization.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>Specifies the value for the key. Currently, this must be the ID of the
* organization.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>Specifies the value for the key. Currently, this must be the ID of the
* organization.</p>
*/
inline Condition& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>Specifies the value for the key. Currently, this must be the ID of the
* organization.</p>
*/
inline Condition& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>Specifies the value for the key. Currently, this must be the ID of the
* organization.</p>
*/
inline Condition& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,215 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/Tag.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API CreateEventBusRequest : public CloudWatchEventsRequest
{
public:
CreateEventBusRequest();
// 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 "CreateEventBus"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the new event bus. </p> <p>Event bus names cannot contain the /
* character. You can't use the name <code>default</code> for a custom event bus,
* as this name is already used for your account's default event bus.</p> <p>If
* this is a partner event bus, the name must exactly match the name of the partner
* event source that this event bus is matched to.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the new event bus. </p> <p>Event bus names cannot contain the /
* character. You can't use the name <code>default</code> for a custom event bus,
* as this name is already used for your account's default event bus.</p> <p>If
* this is a partner event bus, the name must exactly match the name of the partner
* event source that this event bus is matched to.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the new event bus. </p> <p>Event bus names cannot contain the /
* character. You can't use the name <code>default</code> for a custom event bus,
* as this name is already used for your account's default event bus.</p> <p>If
* this is a partner event bus, the name must exactly match the name of the partner
* event source that this event bus is matched to.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the new event bus. </p> <p>Event bus names cannot contain the /
* character. You can't use the name <code>default</code> for a custom event bus,
* as this name is already used for your account's default event bus.</p> <p>If
* this is a partner event bus, the name must exactly match the name of the partner
* event source that this event bus is matched to.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the new event bus. </p> <p>Event bus names cannot contain the /
* character. You can't use the name <code>default</code> for a custom event bus,
* as this name is already used for your account's default event bus.</p> <p>If
* this is a partner event bus, the name must exactly match the name of the partner
* event source that this event bus is matched to.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the new event bus. </p> <p>Event bus names cannot contain the /
* character. You can't use the name <code>default</code> for a custom event bus,
* as this name is already used for your account's default event bus.</p> <p>If
* this is a partner event bus, the name must exactly match the name of the partner
* event source that this event bus is matched to.</p>
*/
inline CreateEventBusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the new event bus. </p> <p>Event bus names cannot contain the /
* character. You can't use the name <code>default</code> for a custom event bus,
* as this name is already used for your account's default event bus.</p> <p>If
* this is a partner event bus, the name must exactly match the name of the partner
* event source that this event bus is matched to.</p>
*/
inline CreateEventBusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the new event bus. </p> <p>Event bus names cannot contain the /
* character. You can't use the name <code>default</code> for a custom event bus,
* as this name is already used for your account's default event bus.</p> <p>If
* this is a partner event bus, the name must exactly match the name of the partner
* event source that this event bus is matched to.</p>
*/
inline CreateEventBusRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>If you are creating a partner event bus, this specifies the partner event
* source that the new event bus will be matched with.</p>
*/
inline const Aws::String& GetEventSourceName() const{ return m_eventSourceName; }
/**
* <p>If you are creating a partner event bus, this specifies the partner event
* source that the new event bus will be matched with.</p>
*/
inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
/**
* <p>If you are creating a partner event bus, this specifies the partner event
* source that the new event bus will be matched with.</p>
*/
inline void SetEventSourceName(const Aws::String& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = value; }
/**
* <p>If you are creating a partner event bus, this specifies the partner event
* source that the new event bus will be matched with.</p>
*/
inline void SetEventSourceName(Aws::String&& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = std::move(value); }
/**
* <p>If you are creating a partner event bus, this specifies the partner event
* source that the new event bus will be matched with.</p>
*/
inline void SetEventSourceName(const char* value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName.assign(value); }
/**
* <p>If you are creating a partner event bus, this specifies the partner event
* source that the new event bus will be matched with.</p>
*/
inline CreateEventBusRequest& WithEventSourceName(const Aws::String& value) { SetEventSourceName(value); return *this;}
/**
* <p>If you are creating a partner event bus, this specifies the partner event
* source that the new event bus will be matched with.</p>
*/
inline CreateEventBusRequest& WithEventSourceName(Aws::String&& value) { SetEventSourceName(std::move(value)); return *this;}
/**
* <p>If you are creating a partner event bus, this specifies the partner event
* source that the new event bus will be matched with.</p>
*/
inline CreateEventBusRequest& WithEventSourceName(const char* value) { SetEventSourceName(value); return *this;}
/**
* <p>Tags to associate with the event bus.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Tags to associate with the event bus.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Tags to associate with the event bus.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Tags to associate with the event bus.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Tags to associate with the event bus.</p>
*/
inline CreateEventBusRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Tags to associate with the event bus.</p>
*/
inline CreateEventBusRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Tags to associate with the event bus.</p>
*/
inline CreateEventBusRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Tags to associate with the event bus.</p>
*/
inline CreateEventBusRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_eventSourceName;
bool m_eventSourceNameHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API CreateEventBusResult
{
public:
CreateEventBusResult();
CreateEventBusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateEventBusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN of the new event bus.</p>
*/
inline const Aws::String& GetEventBusArn() const{ return m_eventBusArn; }
/**
* <p>The ARN of the new event bus.</p>
*/
inline void SetEventBusArn(const Aws::String& value) { m_eventBusArn = value; }
/**
* <p>The ARN of the new event bus.</p>
*/
inline void SetEventBusArn(Aws::String&& value) { m_eventBusArn = std::move(value); }
/**
* <p>The ARN of the new event bus.</p>
*/
inline void SetEventBusArn(const char* value) { m_eventBusArn.assign(value); }
/**
* <p>The ARN of the new event bus.</p>
*/
inline CreateEventBusResult& WithEventBusArn(const Aws::String& value) { SetEventBusArn(value); return *this;}
/**
* <p>The ARN of the new event bus.</p>
*/
inline CreateEventBusResult& WithEventBusArn(Aws::String&& value) { SetEventBusArn(std::move(value)); return *this;}
/**
* <p>The ARN of the new event bus.</p>
*/
inline CreateEventBusResult& WithEventBusArn(const char* value) { SetEventBusArn(value); return *this;}
private:
Aws::String m_eventBusArn;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,169 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API CreatePartnerEventSourceRequest : public CloudWatchEventsRequest
{
public:
CreatePartnerEventSourceRequest();
// 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 "CreatePartnerEventSource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the partner event source. This name must be unique and must be in
* the format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
* </code>. The AWS account that wants to use this partner event source must create
* a partner event bus with a name that matches the name of the partner event
* source.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the partner event source. This name must be unique and must be in
* the format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
* </code>. The AWS account that wants to use this partner event source must create
* a partner event bus with a name that matches the name of the partner event
* source.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the partner event source. This name must be unique and must be in
* the format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
* </code>. The AWS account that wants to use this partner event source must create
* a partner event bus with a name that matches the name of the partner event
* source.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the partner event source. This name must be unique and must be in
* the format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
* </code>. The AWS account that wants to use this partner event source must create
* a partner event bus with a name that matches the name of the partner event
* source.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the partner event source. This name must be unique and must be in
* the format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
* </code>. The AWS account that wants to use this partner event source must create
* a partner event bus with a name that matches the name of the partner event
* source.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the partner event source. This name must be unique and must be in
* the format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
* </code>. The AWS account that wants to use this partner event source must create
* a partner event bus with a name that matches the name of the partner event
* source.</p>
*/
inline CreatePartnerEventSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the partner event source. This name must be unique and must be in
* the format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
* </code>. The AWS account that wants to use this partner event source must create
* a partner event bus with a name that matches the name of the partner event
* source.</p>
*/
inline CreatePartnerEventSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the partner event source. This name must be unique and must be in
* the format <code> <i>partner_name</i>/<i>event_namespace</i>/<i>event_name</i>
* </code>. The AWS account that wants to use this partner event source must create
* a partner event bus with a name that matches the name of the partner event
* source.</p>
*/
inline CreatePartnerEventSourceRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The AWS account ID that is permitted to create a matching partner event bus
* for this partner event source.</p>
*/
inline const Aws::String& GetAccount() const{ return m_account; }
/**
* <p>The AWS account ID that is permitted to create a matching partner event bus
* for this partner event source.</p>
*/
inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
/**
* <p>The AWS account ID that is permitted to create a matching partner event bus
* for this partner event source.</p>
*/
inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
/**
* <p>The AWS account ID that is permitted to create a matching partner event bus
* for this partner event source.</p>
*/
inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
/**
* <p>The AWS account ID that is permitted to create a matching partner event bus
* for this partner event source.</p>
*/
inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
/**
* <p>The AWS account ID that is permitted to create a matching partner event bus
* for this partner event source.</p>
*/
inline CreatePartnerEventSourceRequest& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
/**
* <p>The AWS account ID that is permitted to create a matching partner event bus
* for this partner event source.</p>
*/
inline CreatePartnerEventSourceRequest& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
/**
* <p>The AWS account ID that is permitted to create a matching partner event bus
* for this partner event source.</p>
*/
inline CreatePartnerEventSourceRequest& WithAccount(const char* value) { SetAccount(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_account;
bool m_accountHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API CreatePartnerEventSourceResult
{
public:
CreatePartnerEventSourceResult();
CreatePartnerEventSourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreatePartnerEventSourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN of the partner event source.</p>
*/
inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArn = value; }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArn = std::move(value); }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetEventSourceArn(const char* value) { m_eventSourceArn.assign(value); }
/**
* <p>The ARN of the partner event source.</p>
*/
inline CreatePartnerEventSourceResult& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;}
/**
* <p>The ARN of the partner event source.</p>
*/
inline CreatePartnerEventSourceResult& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the partner event source.</p>
*/
inline CreatePartnerEventSourceResult& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;}
private:
Aws::String m_eventSourceArn;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DeactivateEventSourceRequest : public CloudWatchEventsRequest
{
public:
DeactivateEventSourceRequest();
// 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 "DeactivateEventSource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the partner event source to deactivate.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the partner event source to deactivate.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the partner event source to deactivate.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the partner event source to deactivate.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the partner event source to deactivate.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the partner event source to deactivate.</p>
*/
inline DeactivateEventSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the partner event source to deactivate.</p>
*/
inline DeactivateEventSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the partner event source to deactivate.</p>
*/
inline DeactivateEventSourceRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DeleteEventBusRequest : public CloudWatchEventsRequest
{
public:
DeleteEventBusRequest();
// 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 "DeleteEventBus"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the event bus to delete.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the event bus to delete.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the event bus to delete.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the event bus to delete.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the event bus to delete.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the event bus to delete.</p>
*/
inline DeleteEventBusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the event bus to delete.</p>
*/
inline DeleteEventBusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the event bus to delete.</p>
*/
inline DeleteEventBusRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DeletePartnerEventSourceRequest : public CloudWatchEventsRequest
{
public:
DeletePartnerEventSourceRequest();
// 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 "DeletePartnerEventSource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the event source to delete.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the event source to delete.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the event source to delete.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the event source to delete.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the event source to delete.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the event source to delete.</p>
*/
inline DeletePartnerEventSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the event source to delete.</p>
*/
inline DeletePartnerEventSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the event source to delete.</p>
*/
inline DeletePartnerEventSourceRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The AWS account ID of the AWS customer that the event source was created
* for.</p>
*/
inline const Aws::String& GetAccount() const{ return m_account; }
/**
* <p>The AWS account ID of the AWS customer that the event source was created
* for.</p>
*/
inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
/**
* <p>The AWS account ID of the AWS customer that the event source was created
* for.</p>
*/
inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
/**
* <p>The AWS account ID of the AWS customer that the event source was created
* for.</p>
*/
inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
/**
* <p>The AWS account ID of the AWS customer that the event source was created
* for.</p>
*/
inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
/**
* <p>The AWS account ID of the AWS customer that the event source was created
* for.</p>
*/
inline DeletePartnerEventSourceRequest& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
/**
* <p>The AWS account ID of the AWS customer that the event source was created
* for.</p>
*/
inline DeletePartnerEventSourceRequest& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
/**
* <p>The AWS account ID of the AWS customer that the event source was created
* for.</p>
*/
inline DeletePartnerEventSourceRequest& WithAccount(const char* value) { SetAccount(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_account;
bool m_accountHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,181 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DeleteRuleRequest : public CloudWatchEventsRequest
{
public:
DeleteRuleRequest();
// 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 "DeleteRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the rule.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline DeleteRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline DeleteRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline DeleteRuleRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DeleteRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DeleteRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DeleteRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, you must
* specify <code>Force</code> as <code>True</code> to delete the rule. This
* parameter is ignored for rules that are not managed rules. You can check whether
* a rule is a managed rule by using <code>DescribeRule</code> or
* <code>ListRules</code> and checking the <code>ManagedBy</code> field of the
* response.</p>
*/
inline bool GetForce() const{ return m_force; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, you must
* specify <code>Force</code> as <code>True</code> to delete the rule. This
* parameter is ignored for rules that are not managed rules. You can check whether
* a rule is a managed rule by using <code>DescribeRule</code> or
* <code>ListRules</code> and checking the <code>ManagedBy</code> field of the
* response.</p>
*/
inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, you must
* specify <code>Force</code> as <code>True</code> to delete the rule. This
* parameter is ignored for rules that are not managed rules. You can check whether
* a rule is a managed rule by using <code>DescribeRule</code> or
* <code>ListRules</code> and checking the <code>ManagedBy</code> field of the
* response.</p>
*/
inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, you must
* specify <code>Force</code> as <code>True</code> to delete the rule. This
* parameter is ignored for rules that are not managed rules. You can check whether
* a rule is a managed rule by using <code>DescribeRule</code> or
* <code>ListRules</code> and checking the <code>ManagedBy</code> field of the
* response.</p>
*/
inline DeleteRuleRequest& WithForce(bool value) { SetForce(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
bool m_force;
bool m_forceHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DescribeEventBusRequest : public CloudWatchEventsRequest
{
public:
DescribeEventBusRequest();
// 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 "DescribeEventBus"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the event bus to show details for. If you omit this, the default
* event bus is displayed.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the event bus to show details for. If you omit this, the default
* event bus is displayed.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the event bus to show details for. If you omit this, the default
* event bus is displayed.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the event bus to show details for. If you omit this, the default
* event bus is displayed.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the event bus to show details for. If you omit this, the default
* event bus is displayed.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the event bus to show details for. If you omit this, the default
* event bus is displayed.</p>
*/
inline DescribeEventBusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the event bus to show details for. If you omit this, the default
* event bus is displayed.</p>
*/
inline DescribeEventBusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the event bus to show details for. If you omit this, the default
* event bus is displayed.</p>
*/
inline DescribeEventBusRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,174 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API DescribeEventBusResult
{
public:
DescribeEventBusResult();
DescribeEventBusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventBusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the event bus. Currently, this is always
* <code>default</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the event bus. Currently, this is always
* <code>default</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the event bus. Currently, this is always
* <code>default</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the event bus. Currently, this is always
* <code>default</code>.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the event bus. Currently, this is always
* <code>default</code>.</p>
*/
inline DescribeEventBusResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the event bus. Currently, this is always
* <code>default</code>.</p>
*/
inline DescribeEventBusResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the event bus. Currently, this is always
* <code>default</code>.</p>
*/
inline DescribeEventBusResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the account permitted to write events to
* the current account.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The Amazon Resource Name (ARN) of the account permitted to write events to
* the current account.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the account permitted to write events to
* the current account.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the account permitted to write events to
* the current account.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the account permitted to write events to
* the current account.</p>
*/
inline DescribeEventBusResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the account permitted to write events to
* the current account.</p>
*/
inline DescribeEventBusResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the account permitted to write events to
* the current account.</p>
*/
inline DescribeEventBusResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The policy that enables the external account to send events to your
* account.</p>
*/
inline const Aws::String& GetPolicy() const{ return m_policy; }
/**
* <p>The policy that enables the external account to send events to your
* account.</p>
*/
inline void SetPolicy(const Aws::String& value) { m_policy = value; }
/**
* <p>The policy that enables the external account to send events to your
* account.</p>
*/
inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
/**
* <p>The policy that enables the external account to send events to your
* account.</p>
*/
inline void SetPolicy(const char* value) { m_policy.assign(value); }
/**
* <p>The policy that enables the external account to send events to your
* account.</p>
*/
inline DescribeEventBusResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
/**
* <p>The policy that enables the external account to send events to your
* account.</p>
*/
inline DescribeEventBusResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p>The policy that enables the external account to send events to your
* account.</p>
*/
inline DescribeEventBusResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
private:
Aws::String m_name;
Aws::String m_arn;
Aws::String m_policy;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DescribeEventSourceRequest : public CloudWatchEventsRequest
{
public:
DescribeEventSourceRequest();
// 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 "DescribeEventSource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the partner event source to display the details of.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the partner event source to display the details of.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the partner event source to display the details of.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the partner event source to display the details of.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the partner event source to display the details of.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the partner event source to display the details of.</p>
*/
inline DescribeEventSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the partner event source to display the details of.</p>
*/
inline DescribeEventSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the partner event source to display the details of.</p>
*/
inline DescribeEventSourceRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,264 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/events/model/EventSourceState.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API DescribeEventSourceResult
{
public:
DescribeEventSourceResult();
DescribeEventSourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventSourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN of the partner event source.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN of the partner event source.</p>
*/
inline DescribeEventSourceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the partner event source.</p>
*/
inline DescribeEventSourceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the partner event source.</p>
*/
inline DescribeEventSourceResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The name of the SaaS partner that created the event source.</p>
*/
inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
/**
* <p>The name of the SaaS partner that created the event source.</p>
*/
inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
/**
* <p>The name of the SaaS partner that created the event source.</p>
*/
inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
/**
* <p>The name of the SaaS partner that created the event source.</p>
*/
inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
/**
* <p>The name of the SaaS partner that created the event source.</p>
*/
inline DescribeEventSourceResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
/**
* <p>The name of the SaaS partner that created the event source.</p>
*/
inline DescribeEventSourceResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
/**
* <p>The name of the SaaS partner that created the event source.</p>
*/
inline DescribeEventSourceResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
/**
* <p>The date and time that the event source was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The date and time that the event source was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The date and time that the event source was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The date and time that the event source was created.</p>
*/
inline DescribeEventSourceResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The date and time that the event source was created.</p>
*/
inline DescribeEventSourceResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The date and time that the event source will expire if you do not create a
* matching event bus.</p>
*/
inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
/**
* <p>The date and time that the event source will expire if you do not create a
* matching event bus.</p>
*/
inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTime = value; }
/**
* <p>The date and time that the event source will expire if you do not create a
* matching event bus.</p>
*/
inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTime = std::move(value); }
/**
* <p>The date and time that the event source will expire if you do not create a
* matching event bus.</p>
*/
inline DescribeEventSourceResult& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;}
/**
* <p>The date and time that the event source will expire if you do not create a
* matching event bus.</p>
*/
inline DescribeEventSourceResult& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
/**
* <p>The name of the partner event source.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the partner event source.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the partner event source.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the partner event source.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the partner event source.</p>
*/
inline DescribeEventSourceResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the partner event source.</p>
*/
inline DescribeEventSourceResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the partner event source.</p>
*/
inline DescribeEventSourceResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline const EventSourceState& GetState() const{ return m_state; }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline void SetState(const EventSourceState& value) { m_state = value; }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline void SetState(EventSourceState&& value) { m_state = std::move(value); }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline DescribeEventSourceResult& WithState(const EventSourceState& value) { SetState(value); return *this;}
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline DescribeEventSourceResult& WithState(EventSourceState&& value) { SetState(std::move(value)); return *this;}
private:
Aws::String m_arn;
Aws::String m_createdBy;
Aws::Utils::DateTime m_creationTime;
Aws::Utils::DateTime m_expirationTime;
Aws::String m_name;
EventSourceState m_state;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DescribePartnerEventSourceRequest : public CloudWatchEventsRequest
{
public:
DescribePartnerEventSourceRequest();
// 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 "DescribePartnerEventSource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the event source to display.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the event source to display.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the event source to display.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the event source to display.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the event source to display.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the event source to display.</p>
*/
inline DescribePartnerEventSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the event source to display.</p>
*/
inline DescribePartnerEventSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the event source to display.</p>
*/
inline DescribePartnerEventSourceRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,115 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API DescribePartnerEventSourceResult
{
public:
DescribePartnerEventSourceResult();
DescribePartnerEventSourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribePartnerEventSourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN of the event source.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the event source.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN of the event source.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN of the event source.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN of the event source.</p>
*/
inline DescribePartnerEventSourceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the event source.</p>
*/
inline DescribePartnerEventSourceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the event source.</p>
*/
inline DescribePartnerEventSourceResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The name of the event source.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the event source.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the event source.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the event source.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the event source.</p>
*/
inline DescribePartnerEventSourceResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the event source.</p>
*/
inline DescribePartnerEventSourceResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the event source.</p>
*/
inline DescribePartnerEventSourceResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_name;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DescribeRuleRequest : public CloudWatchEventsRequest
{
public:
DescribeRuleRequest();
// 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 "DescribeRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the rule.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline DescribeRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline DescribeRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline DescribeRuleRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DescribeRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DescribeRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DescribeRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,400 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/RuleState.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API DescribeRuleResult
{
public:
DescribeRuleResult();
DescribeRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline DescribeRuleResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline DescribeRuleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline DescribeRuleResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline DescribeRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline DescribeRuleResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline DescribeRuleResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const Aws::String& value) { m_eventPattern = value; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(Aws::String&& value) { m_eventPattern = std::move(value); }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const char* value) { m_eventPattern.assign(value); }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline DescribeRuleResult& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline DescribeRuleResult& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline DescribeRuleResult& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpression = value; }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpression = std::move(value); }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(const char* value) { m_scheduleExpression.assign(value); }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline DescribeRuleResult& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline DescribeRuleResult& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline DescribeRuleResult& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
/**
* <p>Specifies whether the rule is enabled or disabled.</p>
*/
inline const RuleState& GetState() const{ return m_state; }
/**
* <p>Specifies whether the rule is enabled or disabled.</p>
*/
inline void SetState(const RuleState& value) { m_state = value; }
/**
* <p>Specifies whether the rule is enabled or disabled.</p>
*/
inline void SetState(RuleState&& value) { m_state = std::move(value); }
/**
* <p>Specifies whether the rule is enabled or disabled.</p>
*/
inline DescribeRuleResult& WithState(const RuleState& value) { SetState(value); return *this;}
/**
* <p>Specifies whether the rule is enabled or disabled.</p>
*/
inline DescribeRuleResult& WithState(RuleState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The description of the rule.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the rule.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the rule.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the rule.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the rule.</p>
*/
inline DescribeRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the rule.</p>
*/
inline DescribeRuleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the rule.</p>
*/
inline DescribeRuleResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline DescribeRuleResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline DescribeRuleResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline DescribeRuleResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, this
* field displays the principal name of the AWS service that created the rule.</p>
*/
inline const Aws::String& GetManagedBy() const{ return m_managedBy; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, this
* field displays the principal name of the AWS service that created the rule.</p>
*/
inline void SetManagedBy(const Aws::String& value) { m_managedBy = value; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, this
* field displays the principal name of the AWS service that created the rule.</p>
*/
inline void SetManagedBy(Aws::String&& value) { m_managedBy = std::move(value); }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, this
* field displays the principal name of the AWS service that created the rule.</p>
*/
inline void SetManagedBy(const char* value) { m_managedBy.assign(value); }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, this
* field displays the principal name of the AWS service that created the rule.</p>
*/
inline DescribeRuleResult& WithManagedBy(const Aws::String& value) { SetManagedBy(value); return *this;}
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, this
* field displays the principal name of the AWS service that created the rule.</p>
*/
inline DescribeRuleResult& WithManagedBy(Aws::String&& value) { SetManagedBy(std::move(value)); return *this;}
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, this
* field displays the principal name of the AWS service that created the rule.</p>
*/
inline DescribeRuleResult& WithManagedBy(const char* value) { SetManagedBy(value); return *this;}
/**
* <p>The event bus associated with the rule.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus associated with the rule.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusName = value; }
/**
* <p>The event bus associated with the rule.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusName = std::move(value); }
/**
* <p>The event bus associated with the rule.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusName.assign(value); }
/**
* <p>The event bus associated with the rule.</p>
*/
inline DescribeRuleResult& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus associated with the rule.</p>
*/
inline DescribeRuleResult& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus associated with the rule.</p>
*/
inline DescribeRuleResult& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
private:
Aws::String m_name;
Aws::String m_arn;
Aws::String m_eventPattern;
Aws::String m_scheduleExpression;
RuleState m_state;
Aws::String m_description;
Aws::String m_roleArn;
Aws::String m_managedBy;
Aws::String m_eventBusName;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API DisableRuleRequest : public CloudWatchEventsRequest
{
public:
DisableRuleRequest();
// 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 "DisableRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the rule.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline DisableRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline DisableRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline DisableRuleRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DisableRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DisableRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline DisableRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,411 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/LaunchType.h>
#include <aws/events/model/NetworkConfiguration.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>The custom parameters to be used when the target is an Amazon ECS
* task.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EcsParameters">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API EcsParameters
{
public:
EcsParameters();
EcsParameters(Aws::Utils::Json::JsonView jsonValue);
EcsParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the task definition to use if the event target is an Amazon ECS
* task. </p>
*/
inline const Aws::String& GetTaskDefinitionArn() const{ return m_taskDefinitionArn; }
/**
* <p>The ARN of the task definition to use if the event target is an Amazon ECS
* task. </p>
*/
inline bool TaskDefinitionArnHasBeenSet() const { return m_taskDefinitionArnHasBeenSet; }
/**
* <p>The ARN of the task definition to use if the event target is an Amazon ECS
* task. </p>
*/
inline void SetTaskDefinitionArn(const Aws::String& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = value; }
/**
* <p>The ARN of the task definition to use if the event target is an Amazon ECS
* task. </p>
*/
inline void SetTaskDefinitionArn(Aws::String&& value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn = std::move(value); }
/**
* <p>The ARN of the task definition to use if the event target is an Amazon ECS
* task. </p>
*/
inline void SetTaskDefinitionArn(const char* value) { m_taskDefinitionArnHasBeenSet = true; m_taskDefinitionArn.assign(value); }
/**
* <p>The ARN of the task definition to use if the event target is an Amazon ECS
* task. </p>
*/
inline EcsParameters& WithTaskDefinitionArn(const Aws::String& value) { SetTaskDefinitionArn(value); return *this;}
/**
* <p>The ARN of the task definition to use if the event target is an Amazon ECS
* task. </p>
*/
inline EcsParameters& WithTaskDefinitionArn(Aws::String&& value) { SetTaskDefinitionArn(std::move(value)); return *this;}
/**
* <p>The ARN of the task definition to use if the event target is an Amazon ECS
* task. </p>
*/
inline EcsParameters& WithTaskDefinitionArn(const char* value) { SetTaskDefinitionArn(value); return *this;}
/**
* <p>The number of tasks to create based on <code>TaskDefinition</code>. The
* default is 1.</p>
*/
inline int GetTaskCount() const{ return m_taskCount; }
/**
* <p>The number of tasks to create based on <code>TaskDefinition</code>. The
* default is 1.</p>
*/
inline bool TaskCountHasBeenSet() const { return m_taskCountHasBeenSet; }
/**
* <p>The number of tasks to create based on <code>TaskDefinition</code>. The
* default is 1.</p>
*/
inline void SetTaskCount(int value) { m_taskCountHasBeenSet = true; m_taskCount = value; }
/**
* <p>The number of tasks to create based on <code>TaskDefinition</code>. The
* default is 1.</p>
*/
inline EcsParameters& WithTaskCount(int value) { SetTaskCount(value); return *this;}
/**
* <p>Specifies the launch type on which your task is running. The launch type that
* you specify here must match one of the launch type (compatibilities) of the
* target task. The <code>FARGATE</code> value is supported only in the Regions
* where AWS Fargate with Amazon ECS is supported. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS
* Fargate on Amazon ECS</a> in the <i>Amazon Elastic Container Service Developer
* Guide</i>.</p>
*/
inline const LaunchType& GetLaunchType() const{ return m_launchType; }
/**
* <p>Specifies the launch type on which your task is running. The launch type that
* you specify here must match one of the launch type (compatibilities) of the
* target task. The <code>FARGATE</code> value is supported only in the Regions
* where AWS Fargate with Amazon ECS is supported. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS
* Fargate on Amazon ECS</a> in the <i>Amazon Elastic Container Service Developer
* Guide</i>.</p>
*/
inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
/**
* <p>Specifies the launch type on which your task is running. The launch type that
* you specify here must match one of the launch type (compatibilities) of the
* target task. The <code>FARGATE</code> value is supported only in the Regions
* where AWS Fargate with Amazon ECS is supported. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS
* Fargate on Amazon ECS</a> in the <i>Amazon Elastic Container Service Developer
* Guide</i>.</p>
*/
inline void SetLaunchType(const LaunchType& value) { m_launchTypeHasBeenSet = true; m_launchType = value; }
/**
* <p>Specifies the launch type on which your task is running. The launch type that
* you specify here must match one of the launch type (compatibilities) of the
* target task. The <code>FARGATE</code> value is supported only in the Regions
* where AWS Fargate with Amazon ECS is supported. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS
* Fargate on Amazon ECS</a> in the <i>Amazon Elastic Container Service Developer
* Guide</i>.</p>
*/
inline void SetLaunchType(LaunchType&& value) { m_launchTypeHasBeenSet = true; m_launchType = std::move(value); }
/**
* <p>Specifies the launch type on which your task is running. The launch type that
* you specify here must match one of the launch type (compatibilities) of the
* target task. The <code>FARGATE</code> value is supported only in the Regions
* where AWS Fargate with Amazon ECS is supported. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS
* Fargate on Amazon ECS</a> in the <i>Amazon Elastic Container Service Developer
* Guide</i>.</p>
*/
inline EcsParameters& WithLaunchType(const LaunchType& value) { SetLaunchType(value); return *this;}
/**
* <p>Specifies the launch type on which your task is running. The launch type that
* you specify here must match one of the launch type (compatibilities) of the
* target task. The <code>FARGATE</code> value is supported only in the Regions
* where AWS Fargate with Amazon ECS is supported. For more information, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS
* Fargate on Amazon ECS</a> in the <i>Amazon Elastic Container Service Developer
* Guide</i>.</p>
*/
inline EcsParameters& WithLaunchType(LaunchType&& value) { SetLaunchType(std::move(value)); return *this;}
/**
* <p>Use this structure if the ECS task uses the <code>awsvpc</code> network mode.
* This structure specifies the VPC subnets and security groups associated with the
* task, and whether a public IP address is to be used. This structure is required
* if <code>LaunchType</code> is <code>FARGATE</code> because the
* <code>awsvpc</code> mode is required for Fargate tasks.</p> <p>If you specify
* <code>NetworkConfiguration</code> when the target ECS task does not use the
* <code>awsvpc</code> network mode, the task fails.</p>
*/
inline const NetworkConfiguration& GetNetworkConfiguration() const{ return m_networkConfiguration; }
/**
* <p>Use this structure if the ECS task uses the <code>awsvpc</code> network mode.
* This structure specifies the VPC subnets and security groups associated with the
* task, and whether a public IP address is to be used. This structure is required
* if <code>LaunchType</code> is <code>FARGATE</code> because the
* <code>awsvpc</code> mode is required for Fargate tasks.</p> <p>If you specify
* <code>NetworkConfiguration</code> when the target ECS task does not use the
* <code>awsvpc</code> network mode, the task fails.</p>
*/
inline bool NetworkConfigurationHasBeenSet() const { return m_networkConfigurationHasBeenSet; }
/**
* <p>Use this structure if the ECS task uses the <code>awsvpc</code> network mode.
* This structure specifies the VPC subnets and security groups associated with the
* task, and whether a public IP address is to be used. This structure is required
* if <code>LaunchType</code> is <code>FARGATE</code> because the
* <code>awsvpc</code> mode is required for Fargate tasks.</p> <p>If you specify
* <code>NetworkConfiguration</code> when the target ECS task does not use the
* <code>awsvpc</code> network mode, the task fails.</p>
*/
inline void SetNetworkConfiguration(const NetworkConfiguration& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = value; }
/**
* <p>Use this structure if the ECS task uses the <code>awsvpc</code> network mode.
* This structure specifies the VPC subnets and security groups associated with the
* task, and whether a public IP address is to be used. This structure is required
* if <code>LaunchType</code> is <code>FARGATE</code> because the
* <code>awsvpc</code> mode is required for Fargate tasks.</p> <p>If you specify
* <code>NetworkConfiguration</code> when the target ECS task does not use the
* <code>awsvpc</code> network mode, the task fails.</p>
*/
inline void SetNetworkConfiguration(NetworkConfiguration&& value) { m_networkConfigurationHasBeenSet = true; m_networkConfiguration = std::move(value); }
/**
* <p>Use this structure if the ECS task uses the <code>awsvpc</code> network mode.
* This structure specifies the VPC subnets and security groups associated with the
* task, and whether a public IP address is to be used. This structure is required
* if <code>LaunchType</code> is <code>FARGATE</code> because the
* <code>awsvpc</code> mode is required for Fargate tasks.</p> <p>If you specify
* <code>NetworkConfiguration</code> when the target ECS task does not use the
* <code>awsvpc</code> network mode, the task fails.</p>
*/
inline EcsParameters& WithNetworkConfiguration(const NetworkConfiguration& value) { SetNetworkConfiguration(value); return *this;}
/**
* <p>Use this structure if the ECS task uses the <code>awsvpc</code> network mode.
* This structure specifies the VPC subnets and security groups associated with the
* task, and whether a public IP address is to be used. This structure is required
* if <code>LaunchType</code> is <code>FARGATE</code> because the
* <code>awsvpc</code> mode is required for Fargate tasks.</p> <p>If you specify
* <code>NetworkConfiguration</code> when the target ECS task does not use the
* <code>awsvpc</code> network mode, the task fails.</p>
*/
inline EcsParameters& WithNetworkConfiguration(NetworkConfiguration&& value) { SetNetworkConfiguration(std::move(value)); return *this;}
/**
* <p>Specifies the platform version for the task. Specify only the numeric portion
* of the platform version, such as <code>1.1.0</code>.</p> <p>This structure is
* used only if <code>LaunchType</code> is <code>FARGATE</code>. For more
* information about valid platform versions, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS
* Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service
* Developer Guide</i>.</p>
*/
inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
/**
* <p>Specifies the platform version for the task. Specify only the numeric portion
* of the platform version, such as <code>1.1.0</code>.</p> <p>This structure is
* used only if <code>LaunchType</code> is <code>FARGATE</code>. For more
* information about valid platform versions, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS
* Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service
* Developer Guide</i>.</p>
*/
inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
/**
* <p>Specifies the platform version for the task. Specify only the numeric portion
* of the platform version, such as <code>1.1.0</code>.</p> <p>This structure is
* used only if <code>LaunchType</code> is <code>FARGATE</code>. For more
* information about valid platform versions, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS
* Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service
* Developer Guide</i>.</p>
*/
inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
/**
* <p>Specifies the platform version for the task. Specify only the numeric portion
* of the platform version, such as <code>1.1.0</code>.</p> <p>This structure is
* used only if <code>LaunchType</code> is <code>FARGATE</code>. For more
* information about valid platform versions, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS
* Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service
* Developer Guide</i>.</p>
*/
inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
/**
* <p>Specifies the platform version for the task. Specify only the numeric portion
* of the platform version, such as <code>1.1.0</code>.</p> <p>This structure is
* used only if <code>LaunchType</code> is <code>FARGATE</code>. For more
* information about valid platform versions, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS
* Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service
* Developer Guide</i>.</p>
*/
inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
/**
* <p>Specifies the platform version for the task. Specify only the numeric portion
* of the platform version, such as <code>1.1.0</code>.</p> <p>This structure is
* used only if <code>LaunchType</code> is <code>FARGATE</code>. For more
* information about valid platform versions, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS
* Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service
* Developer Guide</i>.</p>
*/
inline EcsParameters& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
/**
* <p>Specifies the platform version for the task. Specify only the numeric portion
* of the platform version, such as <code>1.1.0</code>.</p> <p>This structure is
* used only if <code>LaunchType</code> is <code>FARGATE</code>. For more
* information about valid platform versions, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS
* Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service
* Developer Guide</i>.</p>
*/
inline EcsParameters& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
/**
* <p>Specifies the platform version for the task. Specify only the numeric portion
* of the platform version, such as <code>1.1.0</code>.</p> <p>This structure is
* used only if <code>LaunchType</code> is <code>FARGATE</code>. For more
* information about valid platform versions, see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS
* Fargate Platform Versions</a> in the <i>Amazon Elastic Container Service
* Developer Guide</i>.</p>
*/
inline EcsParameters& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
/**
* <p>Specifies an ECS task group for the task. The maximum length is 255
* characters.</p>
*/
inline const Aws::String& GetGroup() const{ return m_group; }
/**
* <p>Specifies an ECS task group for the task. The maximum length is 255
* characters.</p>
*/
inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
/**
* <p>Specifies an ECS task group for the task. The maximum length is 255
* characters.</p>
*/
inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
/**
* <p>Specifies an ECS task group for the task. The maximum length is 255
* characters.</p>
*/
inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
/**
* <p>Specifies an ECS task group for the task. The maximum length is 255
* characters.</p>
*/
inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
/**
* <p>Specifies an ECS task group for the task. The maximum length is 255
* characters.</p>
*/
inline EcsParameters& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
/**
* <p>Specifies an ECS task group for the task. The maximum length is 255
* characters.</p>
*/
inline EcsParameters& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
/**
* <p>Specifies an ECS task group for the task. The maximum length is 255
* characters.</p>
*/
inline EcsParameters& WithGroup(const char* value) { SetGroup(value); return *this;}
private:
Aws::String m_taskDefinitionArn;
bool m_taskDefinitionArnHasBeenSet;
int m_taskCount;
bool m_taskCountHasBeenSet;
LaunchType m_launchType;
bool m_launchTypeHasBeenSet;
NetworkConfiguration m_networkConfiguration;
bool m_networkConfigurationHasBeenSet;
Aws::String m_platformVersion;
bool m_platformVersionHasBeenSet;
Aws::String m_group;
bool m_groupHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API EnableRuleRequest : public CloudWatchEventsRequest
{
public:
EnableRuleRequest();
// 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 "EnableRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the rule.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline EnableRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline EnableRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline EnableRuleRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline EnableRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline EnableRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline EnableRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,189 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>An event bus receives events from a source and routes them to rules
* associated with that event bus. Your account's default event bus receives rules
* from AWS services. A custom event bus can receive rules from AWS services as
* well as your custom applications and services. A partner event bus receives
* events from an event source created by an SaaS partner. These events come from
* the partners services or applications.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EventBus">AWS API
* Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API EventBus
{
public:
EventBus();
EventBus(Aws::Utils::Json::JsonView jsonValue);
EventBus& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the event bus.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the event bus.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the event bus.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the event bus.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the event bus.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the event bus.</p>
*/
inline EventBus& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the event bus.</p>
*/
inline EventBus& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the event bus.</p>
*/
inline EventBus& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ARN of the event bus.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the event bus.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN of the event bus.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN of the event bus.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN of the event bus.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN of the event bus.</p>
*/
inline EventBus& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the event bus.</p>
*/
inline EventBus& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the event bus.</p>
*/
inline EventBus& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The permissions policy of the event bus, describing which other AWS accounts
* can write events to this event bus.</p>
*/
inline const Aws::String& GetPolicy() const{ return m_policy; }
/**
* <p>The permissions policy of the event bus, describing which other AWS accounts
* can write events to this event bus.</p>
*/
inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
/**
* <p>The permissions policy of the event bus, describing which other AWS accounts
* can write events to this event bus.</p>
*/
inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
/**
* <p>The permissions policy of the event bus, describing which other AWS accounts
* can write events to this event bus.</p>
*/
inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
/**
* <p>The permissions policy of the event bus, describing which other AWS accounts
* can write events to this event bus.</p>
*/
inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
/**
* <p>The permissions policy of the event bus, describing which other AWS accounts
* can write events to this event bus.</p>
*/
inline EventBus& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
/**
* <p>The permissions policy of the event bus, describing which other AWS accounts
* can write events to this event bus.</p>
*/
inline EventBus& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
/**
* <p>The permissions policy of the event bus, describing which other AWS accounts
* can write events to this event bus.</p>
*/
inline EventBus& WithPolicy(const char* value) { SetPolicy(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_policy;
bool m_policyHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,313 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/events/model/EventSourceState.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>A partner event source is created by an SaaS partner. If a customer creates a
* partner event bus that matches this event source, that AWS account can receive
* events from the partner's applications or services.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EventSource">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API EventSource
{
public:
EventSource();
EventSource(Aws::Utils::Json::JsonView jsonValue);
EventSource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the event source.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the event source.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN of the event source.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN of the event source.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN of the event source.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN of the event source.</p>
*/
inline EventSource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the event source.</p>
*/
inline EventSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the event source.</p>
*/
inline EventSource& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The name of the partner that created the event source.</p>
*/
inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
/**
* <p>The name of the partner that created the event source.</p>
*/
inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
/**
* <p>The name of the partner that created the event source.</p>
*/
inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
/**
* <p>The name of the partner that created the event source.</p>
*/
inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
/**
* <p>The name of the partner that created the event source.</p>
*/
inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
/**
* <p>The name of the partner that created the event source.</p>
*/
inline EventSource& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
/**
* <p>The name of the partner that created the event source.</p>
*/
inline EventSource& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
/**
* <p>The name of the partner that created the event source.</p>
*/
inline EventSource& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
/**
* <p>The date and time the event source was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The date and time the event source was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The date and time the event source was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The date and time the event source was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The date and time the event source was created.</p>
*/
inline EventSource& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The date and time the event source was created.</p>
*/
inline EventSource& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline EventSource& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;}
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline EventSource& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
/**
* <p>The name of the event source.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the event source.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the event source.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the event source.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the event source.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the event source.</p>
*/
inline EventSource& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the event source.</p>
*/
inline EventSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the event source.</p>
*/
inline EventSource& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline const EventSourceState& GetState() const{ return m_state; }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline void SetState(const EventSourceState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline void SetState(EventSourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline EventSource& WithState(const EventSourceState& value) { SetState(value); return *this;}
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline EventSource& WithState(EventSourceState&& value) { SetState(std::move(value)); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_createdBy;
bool m_createdByHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_expirationTime;
bool m_expirationTimeHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
EventSourceState m_state;
bool m_stateHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
enum class EventSourceState
{
NOT_SET,
PENDING,
ACTIVE,
DELETED
};
namespace EventSourceStateMapper
{
AWS_CLOUDWATCHEVENTS_API EventSourceState GetEventSourceStateForName(const Aws::String& name);
AWS_CLOUDWATCHEVENTS_API Aws::String GetNameForEventSourceState(EventSourceState value);
} // namespace EventSourceStateMapper
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,269 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>These are custom parameter to be used when the target is an API Gateway REST
* APIs.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/HttpParameters">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API HttpParameters
{
public:
HttpParameters();
HttpParameters(Aws::Utils::Json::JsonView jsonValue);
HttpParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline const Aws::Vector<Aws::String>& GetPathParameterValues() const{ return m_pathParameterValues; }
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline bool PathParameterValuesHasBeenSet() const { return m_pathParameterValuesHasBeenSet; }
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline void SetPathParameterValues(const Aws::Vector<Aws::String>& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues = value; }
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline void SetPathParameterValues(Aws::Vector<Aws::String>&& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues = std::move(value); }
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline HttpParameters& WithPathParameterValues(const Aws::Vector<Aws::String>& value) { SetPathParameterValues(value); return *this;}
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline HttpParameters& WithPathParameterValues(Aws::Vector<Aws::String>&& value) { SetPathParameterValues(std::move(value)); return *this;}
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline HttpParameters& AddPathParameterValues(const Aws::String& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(value); return *this; }
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline HttpParameters& AddPathParameterValues(Aws::String&& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(std::move(value)); return *this; }
/**
* <p>The path parameter values to be used to populate API Gateway REST API path
* wildcards ("*").</p>
*/
inline HttpParameters& AddPathParameterValues(const char* value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(value); return *this; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetHeaderParameters() const{ return m_headerParameters; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline bool HeaderParametersHasBeenSet() const { return m_headerParametersHasBeenSet; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline void SetHeaderParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_headerParametersHasBeenSet = true; m_headerParameters = value; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline void SetHeaderParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_headerParametersHasBeenSet = true; m_headerParameters = std::move(value); }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& WithHeaderParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetHeaderParameters(value); return *this;}
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& WithHeaderParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetHeaderParameters(std::move(value)); return *this;}
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& AddHeaderParameters(const Aws::String& key, const Aws::String& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, value); return *this; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& AddHeaderParameters(Aws::String&& key, const Aws::String& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& AddHeaderParameters(const Aws::String& key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& AddHeaderParameters(Aws::String&& key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& AddHeaderParameters(const char* key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& AddHeaderParameters(Aws::String&& key, const char* value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The headers that need to be sent as part of request invoking the API Gateway
* REST API.</p>
*/
inline HttpParameters& AddHeaderParameters(const char* key, const char* value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, value); return *this; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetQueryStringParameters() const{ return m_queryStringParameters; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline bool QueryStringParametersHasBeenSet() const { return m_queryStringParametersHasBeenSet; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline void SetQueryStringParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = value; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline void SetQueryStringParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = std::move(value); }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& WithQueryStringParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetQueryStringParameters(value); return *this;}
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& WithQueryStringParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetQueryStringParameters(std::move(value)); return *this;}
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& AddQueryStringParameters(const Aws::String& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& AddQueryStringParameters(Aws::String&& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& AddQueryStringParameters(const Aws::String& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& AddQueryStringParameters(Aws::String&& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& AddQueryStringParameters(const char* key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& AddQueryStringParameters(Aws::String&& key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The query string keys/values that need to be sent as part of request invoking
* the API Gateway REST API.</p>
*/
inline HttpParameters& AddQueryStringParameters(const char* key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; }
private:
Aws::Vector<Aws::String> m_pathParameterValues;
bool m_pathParameterValuesHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_headerParameters;
bool m_headerParametersHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_queryStringParameters;
bool m_queryStringParametersHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,369 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Contains the parameters needed for you to provide custom input to a target
* based on one or more pieces of data extracted from the event.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/InputTransformer">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API InputTransformer
{
public:
InputTransformer();
InputTransformer(Aws::Utils::Json::JsonView jsonValue);
InputTransformer& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetInputPathsMap() const{ return m_inputPathsMap; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline bool InputPathsMapHasBeenSet() const { return m_inputPathsMapHasBeenSet; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline void SetInputPathsMap(const Aws::Map<Aws::String, Aws::String>& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap = value; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline void SetInputPathsMap(Aws::Map<Aws::String, Aws::String>&& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap = std::move(value); }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& WithInputPathsMap(const Aws::Map<Aws::String, Aws::String>& value) { SetInputPathsMap(value); return *this;}
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& WithInputPathsMap(Aws::Map<Aws::String, Aws::String>&& value) { SetInputPathsMap(std::move(value)); return *this;}
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& AddInputPathsMap(const Aws::String& key, const Aws::String& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(key, value); return *this; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& AddInputPathsMap(Aws::String&& key, const Aws::String& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(std::move(key), value); return *this; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& AddInputPathsMap(const Aws::String& key, Aws::String&& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(key, std::move(value)); return *this; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& AddInputPathsMap(Aws::String&& key, Aws::String&& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& AddInputPathsMap(const char* key, Aws::String&& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(key, std::move(value)); return *this; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& AddInputPathsMap(Aws::String&& key, const char* value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(std::move(key), value); return *this; }
/**
* <p>Map of JSON paths to be extracted from the event. You can then insert these
* in the template in <code>InputTemplate</code> to produce the output you want to
* be sent to the target.</p> <p> <code>InputPathsMap</code> is an array key-value
* pairs, where each value is a valid JSON path. You can have as many as 10
* key-value pairs. You must use JSON dot notation, not bracket notation.</p>
* <p>The keys cannot start with "AWS." </p>
*/
inline InputTransformer& AddInputPathsMap(const char* key, const char* value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(key, value); return *this; }
/**
* <p>Input template where you specify placeholders that will be filled with the
* values of the keys from <code>InputPathsMap</code> to customize the data sent to
* the target. Enclose each <code>InputPathsMaps</code> value in brackets:
* &lt;<i>value</i>&gt; The InputTemplate must be valid JSON.</p> <p>If
* <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the
* following restrictions apply:</p> <ul> <li> <p>The placeholder cannot be used as
* an object key.</p> </li> <li> <p>Object values cannot include quote marks.</p>
* </li> </ul> <p>The following example shows the syntax for using
* <code>InputPathsMap</code> and <code>InputTemplate</code>.</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state &lt;status&gt;"</code> </p> <p> <code>}</code> </p> <p>To have the
* <code>InputTemplate</code> include quote marks within a JSON string, escape each
* quote marks with a slash, as in the following example:</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state \"&lt;status&gt;\""</code> </p> <p> <code>}</code> </p>
*/
inline const Aws::String& GetInputTemplate() const{ return m_inputTemplate; }
/**
* <p>Input template where you specify placeholders that will be filled with the
* values of the keys from <code>InputPathsMap</code> to customize the data sent to
* the target. Enclose each <code>InputPathsMaps</code> value in brackets:
* &lt;<i>value</i>&gt; The InputTemplate must be valid JSON.</p> <p>If
* <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the
* following restrictions apply:</p> <ul> <li> <p>The placeholder cannot be used as
* an object key.</p> </li> <li> <p>Object values cannot include quote marks.</p>
* </li> </ul> <p>The following example shows the syntax for using
* <code>InputPathsMap</code> and <code>InputTemplate</code>.</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state &lt;status&gt;"</code> </p> <p> <code>}</code> </p> <p>To have the
* <code>InputTemplate</code> include quote marks within a JSON string, escape each
* quote marks with a slash, as in the following example:</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state \"&lt;status&gt;\""</code> </p> <p> <code>}</code> </p>
*/
inline bool InputTemplateHasBeenSet() const { return m_inputTemplateHasBeenSet; }
/**
* <p>Input template where you specify placeholders that will be filled with the
* values of the keys from <code>InputPathsMap</code> to customize the data sent to
* the target. Enclose each <code>InputPathsMaps</code> value in brackets:
* &lt;<i>value</i>&gt; The InputTemplate must be valid JSON.</p> <p>If
* <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the
* following restrictions apply:</p> <ul> <li> <p>The placeholder cannot be used as
* an object key.</p> </li> <li> <p>Object values cannot include quote marks.</p>
* </li> </ul> <p>The following example shows the syntax for using
* <code>InputPathsMap</code> and <code>InputTemplate</code>.</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state &lt;status&gt;"</code> </p> <p> <code>}</code> </p> <p>To have the
* <code>InputTemplate</code> include quote marks within a JSON string, escape each
* quote marks with a slash, as in the following example:</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state \"&lt;status&gt;\""</code> </p> <p> <code>}</code> </p>
*/
inline void SetInputTemplate(const Aws::String& value) { m_inputTemplateHasBeenSet = true; m_inputTemplate = value; }
/**
* <p>Input template where you specify placeholders that will be filled with the
* values of the keys from <code>InputPathsMap</code> to customize the data sent to
* the target. Enclose each <code>InputPathsMaps</code> value in brackets:
* &lt;<i>value</i>&gt; The InputTemplate must be valid JSON.</p> <p>If
* <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the
* following restrictions apply:</p> <ul> <li> <p>The placeholder cannot be used as
* an object key.</p> </li> <li> <p>Object values cannot include quote marks.</p>
* </li> </ul> <p>The following example shows the syntax for using
* <code>InputPathsMap</code> and <code>InputTemplate</code>.</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state &lt;status&gt;"</code> </p> <p> <code>}</code> </p> <p>To have the
* <code>InputTemplate</code> include quote marks within a JSON string, escape each
* quote marks with a slash, as in the following example:</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state \"&lt;status&gt;\""</code> </p> <p> <code>}</code> </p>
*/
inline void SetInputTemplate(Aws::String&& value) { m_inputTemplateHasBeenSet = true; m_inputTemplate = std::move(value); }
/**
* <p>Input template where you specify placeholders that will be filled with the
* values of the keys from <code>InputPathsMap</code> to customize the data sent to
* the target. Enclose each <code>InputPathsMaps</code> value in brackets:
* &lt;<i>value</i>&gt; The InputTemplate must be valid JSON.</p> <p>If
* <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the
* following restrictions apply:</p> <ul> <li> <p>The placeholder cannot be used as
* an object key.</p> </li> <li> <p>Object values cannot include quote marks.</p>
* </li> </ul> <p>The following example shows the syntax for using
* <code>InputPathsMap</code> and <code>InputTemplate</code>.</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state &lt;status&gt;"</code> </p> <p> <code>}</code> </p> <p>To have the
* <code>InputTemplate</code> include quote marks within a JSON string, escape each
* quote marks with a slash, as in the following example:</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state \"&lt;status&gt;\""</code> </p> <p> <code>}</code> </p>
*/
inline void SetInputTemplate(const char* value) { m_inputTemplateHasBeenSet = true; m_inputTemplate.assign(value); }
/**
* <p>Input template where you specify placeholders that will be filled with the
* values of the keys from <code>InputPathsMap</code> to customize the data sent to
* the target. Enclose each <code>InputPathsMaps</code> value in brackets:
* &lt;<i>value</i>&gt; The InputTemplate must be valid JSON.</p> <p>If
* <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the
* following restrictions apply:</p> <ul> <li> <p>The placeholder cannot be used as
* an object key.</p> </li> <li> <p>Object values cannot include quote marks.</p>
* </li> </ul> <p>The following example shows the syntax for using
* <code>InputPathsMap</code> and <code>InputTemplate</code>.</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state &lt;status&gt;"</code> </p> <p> <code>}</code> </p> <p>To have the
* <code>InputTemplate</code> include quote marks within a JSON string, escape each
* quote marks with a slash, as in the following example:</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state \"&lt;status&gt;\""</code> </p> <p> <code>}</code> </p>
*/
inline InputTransformer& WithInputTemplate(const Aws::String& value) { SetInputTemplate(value); return *this;}
/**
* <p>Input template where you specify placeholders that will be filled with the
* values of the keys from <code>InputPathsMap</code> to customize the data sent to
* the target. Enclose each <code>InputPathsMaps</code> value in brackets:
* &lt;<i>value</i>&gt; The InputTemplate must be valid JSON.</p> <p>If
* <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the
* following restrictions apply:</p> <ul> <li> <p>The placeholder cannot be used as
* an object key.</p> </li> <li> <p>Object values cannot include quote marks.</p>
* </li> </ul> <p>The following example shows the syntax for using
* <code>InputPathsMap</code> and <code>InputTemplate</code>.</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state &lt;status&gt;"</code> </p> <p> <code>}</code> </p> <p>To have the
* <code>InputTemplate</code> include quote marks within a JSON string, escape each
* quote marks with a slash, as in the following example:</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state \"&lt;status&gt;\""</code> </p> <p> <code>}</code> </p>
*/
inline InputTransformer& WithInputTemplate(Aws::String&& value) { SetInputTemplate(std::move(value)); return *this;}
/**
* <p>Input template where you specify placeholders that will be filled with the
* values of the keys from <code>InputPathsMap</code> to customize the data sent to
* the target. Enclose each <code>InputPathsMaps</code> value in brackets:
* &lt;<i>value</i>&gt; The InputTemplate must be valid JSON.</p> <p>If
* <code>InputTemplate</code> is a JSON object (surrounded by curly braces), the
* following restrictions apply:</p> <ul> <li> <p>The placeholder cannot be used as
* an object key.</p> </li> <li> <p>Object values cannot include quote marks.</p>
* </li> </ul> <p>The following example shows the syntax for using
* <code>InputPathsMap</code> and <code>InputTemplate</code>.</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state &lt;status&gt;"</code> </p> <p> <code>}</code> </p> <p>To have the
* <code>InputTemplate</code> include quote marks within a JSON string, escape each
* quote marks with a slash, as in the following example:</p> <p> <code>
* "InputTransformer":</code> </p> <p> <code>{</code> </p> <p>
* <code>"InputPathsMap": {"instance": "$.detail.instance","status":
* "$.detail.status"},</code> </p> <p> <code>"InputTemplate": "&lt;instance&gt; is
* in state \"&lt;status&gt;\""</code> </p> <p> <code>}</code> </p>
*/
inline InputTransformer& WithInputTemplate(const char* value) { SetInputTemplate(value); return *this;}
private:
Aws::Map<Aws::String, Aws::String> m_inputPathsMap;
bool m_inputPathsMapHasBeenSet;
Aws::String m_inputTemplate;
bool m_inputTemplateHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>This object enables you to specify a JSON path to extract from the event and
* use as the partition key for the Amazon Kinesis data stream, so that you can
* control the shard to which the event goes. If you do not include this parameter,
* the default is to use the <code>eventId</code> as the partition
* key.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/KinesisParameters">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API KinesisParameters
{
public:
KinesisParameters();
KinesisParameters(Aws::Utils::Json::JsonView jsonValue);
KinesisParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The JSON path to be extracted from the event and used as the partition key.
* For more information, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
* Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer
* Guide</i>.</p>
*/
inline const Aws::String& GetPartitionKeyPath() const{ return m_partitionKeyPath; }
/**
* <p>The JSON path to be extracted from the event and used as the partition key.
* For more information, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
* Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer
* Guide</i>.</p>
*/
inline bool PartitionKeyPathHasBeenSet() const { return m_partitionKeyPathHasBeenSet; }
/**
* <p>The JSON path to be extracted from the event and used as the partition key.
* For more information, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
* Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer
* Guide</i>.</p>
*/
inline void SetPartitionKeyPath(const Aws::String& value) { m_partitionKeyPathHasBeenSet = true; m_partitionKeyPath = value; }
/**
* <p>The JSON path to be extracted from the event and used as the partition key.
* For more information, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
* Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer
* Guide</i>.</p>
*/
inline void SetPartitionKeyPath(Aws::String&& value) { m_partitionKeyPathHasBeenSet = true; m_partitionKeyPath = std::move(value); }
/**
* <p>The JSON path to be extracted from the event and used as the partition key.
* For more information, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
* Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer
* Guide</i>.</p>
*/
inline void SetPartitionKeyPath(const char* value) { m_partitionKeyPathHasBeenSet = true; m_partitionKeyPath.assign(value); }
/**
* <p>The JSON path to be extracted from the event and used as the partition key.
* For more information, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
* Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer
* Guide</i>.</p>
*/
inline KinesisParameters& WithPartitionKeyPath(const Aws::String& value) { SetPartitionKeyPath(value); return *this;}
/**
* <p>The JSON path to be extracted from the event and used as the partition key.
* For more information, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
* Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer
* Guide</i>.</p>
*/
inline KinesisParameters& WithPartitionKeyPath(Aws::String&& value) { SetPartitionKeyPath(std::move(value)); return *this;}
/**
* <p>The JSON path to be extracted from the event and used as the partition key.
* For more information, see <a
* href="https://docs.aws.amazon.com/streams/latest/dev/key-concepts.html#partition-key">Amazon
* Kinesis Streams Key Concepts</a> in the <i>Amazon Kinesis Streams Developer
* Guide</i>.</p>
*/
inline KinesisParameters& WithPartitionKeyPath(const char* value) { SetPartitionKeyPath(value); return *this;}
private:
Aws::String m_partitionKeyPath;
bool m_partitionKeyPathHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
enum class LaunchType
{
NOT_SET,
EC2,
FARGATE
};
namespace LaunchTypeMapper
{
AWS_CLOUDWATCHEVENTS_API LaunchType GetLaunchTypeForName(const Aws::String& name);
AWS_CLOUDWATCHEVENTS_API Aws::String GetNameForLaunchType(LaunchType value);
} // namespace LaunchTypeMapper
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ListEventBusesRequest : public CloudWatchEventsRequest
{
public:
ListEventBusesRequest();
// 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 "ListEventBuses"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifying this limits the results to only those event buses with names that
* start with the specified prefix.</p>
*/
inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; }
/**
* <p>Specifying this limits the results to only those event buses with names that
* start with the specified prefix.</p>
*/
inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
/**
* <p>Specifying this limits the results to only those event buses with names that
* start with the specified prefix.</p>
*/
inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
/**
* <p>Specifying this limits the results to only those event buses with names that
* start with the specified prefix.</p>
*/
inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
/**
* <p>Specifying this limits the results to only those event buses with names that
* start with the specified prefix.</p>
*/
inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
/**
* <p>Specifying this limits the results to only those event buses with names that
* start with the specified prefix.</p>
*/
inline ListEventBusesRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
/**
* <p>Specifying this limits the results to only those event buses with names that
* start with the specified prefix.</p>
*/
inline ListEventBusesRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
/**
* <p>Specifying this limits the results to only those event buses with names that
* start with the specified prefix.</p>
*/
inline ListEventBusesRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListEventBusesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListEventBusesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListEventBusesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline ListEventBusesRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_namePrefix;
bool m_namePrefixHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/EventBus.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API ListEventBusesResult
{
public:
ListEventBusesResult();
ListEventBusesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListEventBusesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>This list of event buses.</p>
*/
inline const Aws::Vector<EventBus>& GetEventBuses() const{ return m_eventBuses; }
/**
* <p>This list of event buses.</p>
*/
inline void SetEventBuses(const Aws::Vector<EventBus>& value) { m_eventBuses = value; }
/**
* <p>This list of event buses.</p>
*/
inline void SetEventBuses(Aws::Vector<EventBus>&& value) { m_eventBuses = std::move(value); }
/**
* <p>This list of event buses.</p>
*/
inline ListEventBusesResult& WithEventBuses(const Aws::Vector<EventBus>& value) { SetEventBuses(value); return *this;}
/**
* <p>This list of event buses.</p>
*/
inline ListEventBusesResult& WithEventBuses(Aws::Vector<EventBus>&& value) { SetEventBuses(std::move(value)); return *this;}
/**
* <p>This list of event buses.</p>
*/
inline ListEventBusesResult& AddEventBuses(const EventBus& value) { m_eventBuses.push_back(value); return *this; }
/**
* <p>This list of event buses.</p>
*/
inline ListEventBusesResult& AddEventBuses(EventBus&& value) { m_eventBuses.push_back(std::move(value)); return *this; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListEventBusesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListEventBusesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListEventBusesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<EventBus> m_eventBuses;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ListEventSourcesRequest : public CloudWatchEventsRequest
{
public:
ListEventSourcesRequest();
// 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 "ListEventSources"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Specifying this limits the results to only those partner event sources with
* names that start with the specified prefix.</p>
*/
inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; }
/**
* <p>Specifying this limits the results to only those partner event sources with
* names that start with the specified prefix.</p>
*/
inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
/**
* <p>Specifying this limits the results to only those partner event sources with
* names that start with the specified prefix.</p>
*/
inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
/**
* <p>Specifying this limits the results to only those partner event sources with
* names that start with the specified prefix.</p>
*/
inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
/**
* <p>Specifying this limits the results to only those partner event sources with
* names that start with the specified prefix.</p>
*/
inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
/**
* <p>Specifying this limits the results to only those partner event sources with
* names that start with the specified prefix.</p>
*/
inline ListEventSourcesRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
/**
* <p>Specifying this limits the results to only those partner event sources with
* names that start with the specified prefix.</p>
*/
inline ListEventSourcesRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
/**
* <p>Specifying this limits the results to only those partner event sources with
* names that start with the specified prefix.</p>
*/
inline ListEventSourcesRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListEventSourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListEventSourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListEventSourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline ListEventSourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_namePrefix;
bool m_namePrefixHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/EventSource.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API ListEventSourcesResult
{
public:
ListEventSourcesResult();
ListEventSourcesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListEventSourcesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of event sources.</p>
*/
inline const Aws::Vector<EventSource>& GetEventSources() const{ return m_eventSources; }
/**
* <p>The list of event sources.</p>
*/
inline void SetEventSources(const Aws::Vector<EventSource>& value) { m_eventSources = value; }
/**
* <p>The list of event sources.</p>
*/
inline void SetEventSources(Aws::Vector<EventSource>&& value) { m_eventSources = std::move(value); }
/**
* <p>The list of event sources.</p>
*/
inline ListEventSourcesResult& WithEventSources(const Aws::Vector<EventSource>& value) { SetEventSources(value); return *this;}
/**
* <p>The list of event sources.</p>
*/
inline ListEventSourcesResult& WithEventSources(Aws::Vector<EventSource>&& value) { SetEventSources(std::move(value)); return *this;}
/**
* <p>The list of event sources.</p>
*/
inline ListEventSourcesResult& AddEventSources(const EventSource& value) { m_eventSources.push_back(value); return *this; }
/**
* <p>The list of event sources.</p>
*/
inline ListEventSourcesResult& AddEventSources(EventSource&& value) { m_eventSources.push_back(std::move(value)); return *this; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListEventSourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListEventSourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListEventSourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<EventSource> m_eventSources;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ListPartnerEventSourceAccountsRequest : public CloudWatchEventsRequest
{
public:
ListPartnerEventSourceAccountsRequest();
// 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 "ListPartnerEventSourceAccounts"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the partner event source to display account information
* about.</p>
*/
inline const Aws::String& GetEventSourceName() const{ return m_eventSourceName; }
/**
* <p>The name of the partner event source to display account information
* about.</p>
*/
inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; }
/**
* <p>The name of the partner event source to display account information
* about.</p>
*/
inline void SetEventSourceName(const Aws::String& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = value; }
/**
* <p>The name of the partner event source to display account information
* about.</p>
*/
inline void SetEventSourceName(Aws::String&& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = std::move(value); }
/**
* <p>The name of the partner event source to display account information
* about.</p>
*/
inline void SetEventSourceName(const char* value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName.assign(value); }
/**
* <p>The name of the partner event source to display account information
* about.</p>
*/
inline ListPartnerEventSourceAccountsRequest& WithEventSourceName(const Aws::String& value) { SetEventSourceName(value); return *this;}
/**
* <p>The name of the partner event source to display account information
* about.</p>
*/
inline ListPartnerEventSourceAccountsRequest& WithEventSourceName(Aws::String&& value) { SetEventSourceName(std::move(value)); return *this;}
/**
* <p>The name of the partner event source to display account information
* about.</p>
*/
inline ListPartnerEventSourceAccountsRequest& WithEventSourceName(const char* value) { SetEventSourceName(value); return *this;}
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline ListPartnerEventSourceAccountsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline ListPartnerEventSourceAccountsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline ListPartnerEventSourceAccountsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>Specifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline ListPartnerEventSourceAccountsRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_eventSourceName;
bool m_eventSourceNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/PartnerEventSourceAccount.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API ListPartnerEventSourceAccountsResult
{
public:
ListPartnerEventSourceAccountsResult();
ListPartnerEventSourceAccountsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListPartnerEventSourceAccountsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline const Aws::Vector<PartnerEventSourceAccount>& GetPartnerEventSourceAccounts() const{ return m_partnerEventSourceAccounts; }
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline void SetPartnerEventSourceAccounts(const Aws::Vector<PartnerEventSourceAccount>& value) { m_partnerEventSourceAccounts = value; }
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline void SetPartnerEventSourceAccounts(Aws::Vector<PartnerEventSourceAccount>&& value) { m_partnerEventSourceAccounts = std::move(value); }
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline ListPartnerEventSourceAccountsResult& WithPartnerEventSourceAccounts(const Aws::Vector<PartnerEventSourceAccount>& value) { SetPartnerEventSourceAccounts(value); return *this;}
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline ListPartnerEventSourceAccountsResult& WithPartnerEventSourceAccounts(Aws::Vector<PartnerEventSourceAccount>&& value) { SetPartnerEventSourceAccounts(std::move(value)); return *this;}
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline ListPartnerEventSourceAccountsResult& AddPartnerEventSourceAccounts(const PartnerEventSourceAccount& value) { m_partnerEventSourceAccounts.push_back(value); return *this; }
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline ListPartnerEventSourceAccountsResult& AddPartnerEventSourceAccounts(PartnerEventSourceAccount&& value) { m_partnerEventSourceAccounts.push_back(std::move(value)); return *this; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListPartnerEventSourceAccountsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListPartnerEventSourceAccountsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListPartnerEventSourceAccountsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<PartnerEventSourceAccount> m_partnerEventSourceAccounts;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ListPartnerEventSourcesRequest : public CloudWatchEventsRequest
{
public:
ListPartnerEventSourcesRequest();
// 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 "ListPartnerEventSources"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>If you specify this, the results are limited to only those partner event
* sources that start with the string you specify.</p>
*/
inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; }
/**
* <p>If you specify this, the results are limited to only those partner event
* sources that start with the string you specify.</p>
*/
inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
/**
* <p>If you specify this, the results are limited to only those partner event
* sources that start with the string you specify.</p>
*/
inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
/**
* <p>If you specify this, the results are limited to only those partner event
* sources that start with the string you specify.</p>
*/
inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
/**
* <p>If you specify this, the results are limited to only those partner event
* sources that start with the string you specify.</p>
*/
inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
/**
* <p>If you specify this, the results are limited to only those partner event
* sources that start with the string you specify.</p>
*/
inline ListPartnerEventSourcesRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
/**
* <p>If you specify this, the results are limited to only those partner event
* sources that start with the string you specify.</p>
*/
inline ListPartnerEventSourcesRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
/**
* <p>If you specify this, the results are limited to only those partner event
* sources that start with the string you specify.</p>
*/
inline ListPartnerEventSourcesRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline ListPartnerEventSourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline ListPartnerEventSourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token returned by a previous call to this operation. Specifying this
* retrieves the next set of results.</p>
*/
inline ListPartnerEventSourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>pecifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>pecifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>pecifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>pecifying this limits the number of results returned by this operation. The
* operation also returns a NextToken which you can use in a subsequent operation
* to retrieve the next set of results.</p>
*/
inline ListPartnerEventSourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_namePrefix;
bool m_namePrefixHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/PartnerEventSource.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API ListPartnerEventSourcesResult
{
public:
ListPartnerEventSourcesResult();
ListPartnerEventSourcesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListPartnerEventSourcesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline const Aws::Vector<PartnerEventSource>& GetPartnerEventSources() const{ return m_partnerEventSources; }
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline void SetPartnerEventSources(const Aws::Vector<PartnerEventSource>& value) { m_partnerEventSources = value; }
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline void SetPartnerEventSources(Aws::Vector<PartnerEventSource>&& value) { m_partnerEventSources = std::move(value); }
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline ListPartnerEventSourcesResult& WithPartnerEventSources(const Aws::Vector<PartnerEventSource>& value) { SetPartnerEventSources(value); return *this;}
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline ListPartnerEventSourcesResult& WithPartnerEventSources(Aws::Vector<PartnerEventSource>&& value) { SetPartnerEventSources(std::move(value)); return *this;}
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline ListPartnerEventSourcesResult& AddPartnerEventSources(const PartnerEventSource& value) { m_partnerEventSources.push_back(value); return *this; }
/**
* <p>The list of partner event sources returned by the operation.</p>
*/
inline ListPartnerEventSourcesResult& AddPartnerEventSources(PartnerEventSource&& value) { m_partnerEventSources.push_back(std::move(value)); return *this; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListPartnerEventSourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListPartnerEventSourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token you can use in a subsequent operation to retrieve the next set of
* results.</p>
*/
inline ListPartnerEventSourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<PartnerEventSource> m_partnerEventSources;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,213 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ListRuleNamesByTargetRequest : public CloudWatchEventsRequest
{
public:
ListRuleNamesByTargetRequest();
// 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 "ListRuleNamesByTarget"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the target resource.</p>
*/
inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
/**
* <p>The Amazon Resource Name (ARN) of the target resource.</p>
*/
inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the target resource.</p>
*/
inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the target resource.</p>
*/
inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the target resource.</p>
*/
inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the target resource.</p>
*/
inline ListRuleNamesByTargetRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the target resource.</p>
*/
inline ListRuleNamesByTargetRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the target resource.</p>
*/
inline ListRuleNamesByTargetRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline ListRuleNamesByTargetRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline ListRuleNamesByTargetRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline ListRuleNamesByTargetRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListRuleNamesByTargetRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListRuleNamesByTargetRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListRuleNamesByTargetRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of results to return.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of results to return.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of results to return.</p>
*/
inline ListRuleNamesByTargetRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_targetArn;
bool m_targetArnHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API ListRuleNamesByTargetResult
{
public:
ListRuleNamesByTargetResult();
ListRuleNamesByTargetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRuleNamesByTargetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The names of the rules that can invoke the given target.</p>
*/
inline const Aws::Vector<Aws::String>& GetRuleNames() const{ return m_ruleNames; }
/**
* <p>The names of the rules that can invoke the given target.</p>
*/
inline void SetRuleNames(const Aws::Vector<Aws::String>& value) { m_ruleNames = value; }
/**
* <p>The names of the rules that can invoke the given target.</p>
*/
inline void SetRuleNames(Aws::Vector<Aws::String>&& value) { m_ruleNames = std::move(value); }
/**
* <p>The names of the rules that can invoke the given target.</p>
*/
inline ListRuleNamesByTargetResult& WithRuleNames(const Aws::Vector<Aws::String>& value) { SetRuleNames(value); return *this;}
/**
* <p>The names of the rules that can invoke the given target.</p>
*/
inline ListRuleNamesByTargetResult& WithRuleNames(Aws::Vector<Aws::String>&& value) { SetRuleNames(std::move(value)); return *this;}
/**
* <p>The names of the rules that can invoke the given target.</p>
*/
inline ListRuleNamesByTargetResult& AddRuleNames(const Aws::String& value) { m_ruleNames.push_back(value); return *this; }
/**
* <p>The names of the rules that can invoke the given target.</p>
*/
inline ListRuleNamesByTargetResult& AddRuleNames(Aws::String&& value) { m_ruleNames.push_back(std::move(value)); return *this; }
/**
* <p>The names of the rules that can invoke the given target.</p>
*/
inline ListRuleNamesByTargetResult& AddRuleNames(const char* value) { m_ruleNames.push_back(value); return *this; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListRuleNamesByTargetResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListRuleNamesByTargetResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListRuleNamesByTargetResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_ruleNames;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,213 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ListRulesRequest : public CloudWatchEventsRequest
{
public:
ListRulesRequest();
// 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 "ListRules"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The prefix matching the rule name.</p>
*/
inline const Aws::String& GetNamePrefix() const{ return m_namePrefix; }
/**
* <p>The prefix matching the rule name.</p>
*/
inline bool NamePrefixHasBeenSet() const { return m_namePrefixHasBeenSet; }
/**
* <p>The prefix matching the rule name.</p>
*/
inline void SetNamePrefix(const Aws::String& value) { m_namePrefixHasBeenSet = true; m_namePrefix = value; }
/**
* <p>The prefix matching the rule name.</p>
*/
inline void SetNamePrefix(Aws::String&& value) { m_namePrefixHasBeenSet = true; m_namePrefix = std::move(value); }
/**
* <p>The prefix matching the rule name.</p>
*/
inline void SetNamePrefix(const char* value) { m_namePrefixHasBeenSet = true; m_namePrefix.assign(value); }
/**
* <p>The prefix matching the rule name.</p>
*/
inline ListRulesRequest& WithNamePrefix(const Aws::String& value) { SetNamePrefix(value); return *this;}
/**
* <p>The prefix matching the rule name.</p>
*/
inline ListRulesRequest& WithNamePrefix(Aws::String&& value) { SetNamePrefix(std::move(value)); return *this;}
/**
* <p>The prefix matching the rule name.</p>
*/
inline ListRulesRequest& WithNamePrefix(const char* value) { SetNamePrefix(value); return *this;}
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline ListRulesRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline ListRulesRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>Limits the results to show only the rules associated with the specified event
* bus.</p>
*/
inline ListRulesRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of results to return.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of results to return.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of results to return.</p>
*/
inline ListRulesRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_namePrefix;
bool m_namePrefixHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/Rule.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API ListRulesResult
{
public:
ListRulesResult();
ListRulesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRulesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The rules that match the specified criteria.</p>
*/
inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
/**
* <p>The rules that match the specified criteria.</p>
*/
inline void SetRules(const Aws::Vector<Rule>& value) { m_rules = value; }
/**
* <p>The rules that match the specified criteria.</p>
*/
inline void SetRules(Aws::Vector<Rule>&& value) { m_rules = std::move(value); }
/**
* <p>The rules that match the specified criteria.</p>
*/
inline ListRulesResult& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
/**
* <p>The rules that match the specified criteria.</p>
*/
inline ListRulesResult& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
/**
* <p>The rules that match the specified criteria.</p>
*/
inline ListRulesResult& AddRules(const Rule& value) { m_rules.push_back(value); return *this; }
/**
* <p>The rules that match the specified criteria.</p>
*/
inline ListRulesResult& AddRules(Rule&& value) { m_rules.push_back(std::move(value)); return *this; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListRulesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListRulesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListRulesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Rule> m_rules;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ListTagsForResourceRequest : public CloudWatchEventsRequest
{
public:
ListTagsForResourceRequest();
// 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 "ListTagsForResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ARN of the EventBridge resource for which you want to view tags.</p>
*/
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
/**
* <p>The ARN of the EventBridge resource for which you want to view tags.</p>
*/
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
/**
* <p>The ARN of the EventBridge resource for which you want to view tags.</p>
*/
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
/**
* <p>The ARN of the EventBridge resource for which you want to view tags.</p>
*/
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
/**
* <p>The ARN of the EventBridge resource for which you want to view tags.</p>
*/
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
/**
* <p>The ARN of the EventBridge resource for which you want to view tags.</p>
*/
inline ListTagsForResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
/**
* <p>The ARN of the EventBridge resource for which you want to view tags.</p>
*/
inline ListTagsForResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
/**
* <p>The ARN of the EventBridge resource for which you want to view tags.</p>
*/
inline ListTagsForResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
private:
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of tag keys and values associated with the resource you
* specified</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The list of tag keys and values associated with the resource you
* specified</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>The list of tag keys and values associated with the resource you
* specified</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>The list of tag keys and values associated with the resource you
* specified</p>
*/
inline ListTagsForResourceResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The list of tag keys and values associated with the resource you
* specified</p>
*/
inline ListTagsForResourceResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The list of tag keys and values associated with the resource you
* specified</p>
*/
inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>The list of tag keys and values associated with the resource you
* specified</p>
*/
inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Tag> m_tags;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,213 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API ListTargetsByRuleRequest : public CloudWatchEventsRequest
{
public:
ListTargetsByRuleRequest();
// 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 "ListTargetsByRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetRule() const{ return m_rule; }
/**
* <p>The name of the rule.</p>
*/
inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(const char* value) { m_ruleHasBeenSet = true; m_rule.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline ListTargetsByRuleRequest& WithRule(const Aws::String& value) { SetRule(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline ListTargetsByRuleRequest& WithRule(Aws::String&& value) { SetRule(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline ListTargetsByRuleRequest& WithRule(const char* value) { SetRule(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline ListTargetsByRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline ListTargetsByRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline ListTargetsByRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListTargetsByRuleRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListTargetsByRuleRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token returned by a previous call to retrieve the next set of
* results.</p>
*/
inline ListTargetsByRuleRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of results to return.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of results to return.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of results to return.</p>
*/
inline ListTargetsByRuleRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_rule;
bool m_ruleHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/Target.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API ListTargetsByRuleResult
{
public:
ListTargetsByRuleResult();
ListTargetsByRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTargetsByRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The targets assigned to the rule.</p>
*/
inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
/**
* <p>The targets assigned to the rule.</p>
*/
inline void SetTargets(const Aws::Vector<Target>& value) { m_targets = value; }
/**
* <p>The targets assigned to the rule.</p>
*/
inline void SetTargets(Aws::Vector<Target>&& value) { m_targets = std::move(value); }
/**
* <p>The targets assigned to the rule.</p>
*/
inline ListTargetsByRuleResult& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
/**
* <p>The targets assigned to the rule.</p>
*/
inline ListTargetsByRuleResult& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
/**
* <p>The targets assigned to the rule.</p>
*/
inline ListTargetsByRuleResult& AddTargets(const Target& value) { m_targets.push_back(value); return *this; }
/**
* <p>The targets assigned to the rule.</p>
*/
inline ListTargetsByRuleResult& AddTargets(Target&& value) { m_targets.push_back(std::move(value)); return *this; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListTargetsByRuleResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListTargetsByRuleResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Indicates whether there are additional results to retrieve. If there are no
* more results, the value is null.</p>
*/
inline ListTargetsByRuleResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Target> m_targets;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/model/AwsVpcConfiguration.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>This structure specifies the network configuration for an ECS
* task.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/NetworkConfiguration">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API NetworkConfiguration
{
public:
NetworkConfiguration();
NetworkConfiguration(Aws::Utils::Json::JsonView jsonValue);
NetworkConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Use this structure to specify the VPC subnets and security groups for the
* task, and whether a public IP address is to be used. This structure is relevant
* only for ECS tasks that use the <code>awsvpc</code> network mode.</p>
*/
inline const AwsVpcConfiguration& GetAwsvpcConfiguration() const{ return m_awsvpcConfiguration; }
/**
* <p>Use this structure to specify the VPC subnets and security groups for the
* task, and whether a public IP address is to be used. This structure is relevant
* only for ECS tasks that use the <code>awsvpc</code> network mode.</p>
*/
inline bool AwsvpcConfigurationHasBeenSet() const { return m_awsvpcConfigurationHasBeenSet; }
/**
* <p>Use this structure to specify the VPC subnets and security groups for the
* task, and whether a public IP address is to be used. This structure is relevant
* only for ECS tasks that use the <code>awsvpc</code> network mode.</p>
*/
inline void SetAwsvpcConfiguration(const AwsVpcConfiguration& value) { m_awsvpcConfigurationHasBeenSet = true; m_awsvpcConfiguration = value; }
/**
* <p>Use this structure to specify the VPC subnets and security groups for the
* task, and whether a public IP address is to be used. This structure is relevant
* only for ECS tasks that use the <code>awsvpc</code> network mode.</p>
*/
inline void SetAwsvpcConfiguration(AwsVpcConfiguration&& value) { m_awsvpcConfigurationHasBeenSet = true; m_awsvpcConfiguration = std::move(value); }
/**
* <p>Use this structure to specify the VPC subnets and security groups for the
* task, and whether a public IP address is to be used. This structure is relevant
* only for ECS tasks that use the <code>awsvpc</code> network mode.</p>
*/
inline NetworkConfiguration& WithAwsvpcConfiguration(const AwsVpcConfiguration& value) { SetAwsvpcConfiguration(value); return *this;}
/**
* <p>Use this structure to specify the VPC subnets and security groups for the
* task, and whether a public IP address is to be used. This structure is relevant
* only for ECS tasks that use the <code>awsvpc</code> network mode.</p>
*/
inline NetworkConfiguration& WithAwsvpcConfiguration(AwsVpcConfiguration&& value) { SetAwsvpcConfiguration(std::move(value)); return *this;}
private:
AwsVpcConfiguration m_awsvpcConfiguration;
bool m_awsvpcConfigurationHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>A partner event source is created by an SaaS partner. If a customer creates a
* partner event bus that matches this event source, that AWS account can receive
* events from the partner's applications or services.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PartnerEventSource">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API PartnerEventSource
{
public:
PartnerEventSource();
PartnerEventSource(Aws::Utils::Json::JsonView jsonValue);
PartnerEventSource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the partner event source.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the partner event source.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN of the partner event source.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN of the partner event source.</p>
*/
inline PartnerEventSource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the partner event source.</p>
*/
inline PartnerEventSource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the partner event source.</p>
*/
inline PartnerEventSource& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The name of the partner event source.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the partner event source.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the partner event source.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the partner event source.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the partner event source.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the partner event source.</p>
*/
inline PartnerEventSource& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the partner event source.</p>
*/
inline PartnerEventSource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the partner event source.</p>
*/
inline PartnerEventSource& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,223 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/events/model/EventSourceState.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>The AWS account that a partner event source has been offered
* to.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PartnerEventSourceAccount">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API PartnerEventSourceAccount
{
public:
PartnerEventSourceAccount();
PartnerEventSourceAccount(Aws::Utils::Json::JsonView jsonValue);
PartnerEventSourceAccount& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The AWS account ID that the partner event source was offered to.</p>
*/
inline const Aws::String& GetAccount() const{ return m_account; }
/**
* <p>The AWS account ID that the partner event source was offered to.</p>
*/
inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
/**
* <p>The AWS account ID that the partner event source was offered to.</p>
*/
inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
/**
* <p>The AWS account ID that the partner event source was offered to.</p>
*/
inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
/**
* <p>The AWS account ID that the partner event source was offered to.</p>
*/
inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
/**
* <p>The AWS account ID that the partner event source was offered to.</p>
*/
inline PartnerEventSourceAccount& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
/**
* <p>The AWS account ID that the partner event source was offered to.</p>
*/
inline PartnerEventSourceAccount& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
/**
* <p>The AWS account ID that the partner event source was offered to.</p>
*/
inline PartnerEventSourceAccount& WithAccount(const char* value) { SetAccount(value); return *this;}
/**
* <p>The date and time the event source was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The date and time the event source was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The date and time the event source was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The date and time the event source was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The date and time the event source was created.</p>
*/
inline PartnerEventSourceAccount& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The date and time the event source was created.</p>
*/
inline PartnerEventSourceAccount& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline PartnerEventSourceAccount& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;}
/**
* <p>The date and time that the event source will expire, if the AWS account
* doesn't create a matching event bus for it.</p>
*/
inline PartnerEventSourceAccount& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline const EventSourceState& GetState() const{ return m_state; }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline void SetState(const EventSourceState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline void SetState(EventSourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline PartnerEventSourceAccount& WithState(const EventSourceState& value) { SetState(value); return *this;}
/**
* <p>The state of the event source. If it is ACTIVE, you have already created a
* matching event bus for this event source, and that event bus is active. If it is
* PENDING, either you haven't yet created a matching event bus, or that event bus
* is deactivated. If it is DELETED, you have created a matching event bus, but the
* event source has since been deleted.</p>
*/
inline PartnerEventSourceAccount& WithState(EventSourceState&& value) { SetState(std::move(value)); return *this;}
private:
Aws::String m_account;
bool m_accountHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_expirationTime;
bool m_expirationTimeHasBeenSet;
EventSourceState m_state;
bool m_stateHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,102 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/PutEventsRequestEntry.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API PutEventsRequest : public CloudWatchEventsRequest
{
public:
PutEventsRequest();
// 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 "PutEvents"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The entry that defines an event in your system. You can specify several
* parameters for the entry such as the source and type of the event, resources
* associated with the event, and so on.</p>
*/
inline const Aws::Vector<PutEventsRequestEntry>& GetEntries() const{ return m_entries; }
/**
* <p>The entry that defines an event in your system. You can specify several
* parameters for the entry such as the source and type of the event, resources
* associated with the event, and so on.</p>
*/
inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
/**
* <p>The entry that defines an event in your system. You can specify several
* parameters for the entry such as the source and type of the event, resources
* associated with the event, and so on.</p>
*/
inline void SetEntries(const Aws::Vector<PutEventsRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
/**
* <p>The entry that defines an event in your system. You can specify several
* parameters for the entry such as the source and type of the event, resources
* associated with the event, and so on.</p>
*/
inline void SetEntries(Aws::Vector<PutEventsRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
/**
* <p>The entry that defines an event in your system. You can specify several
* parameters for the entry such as the source and type of the event, resources
* associated with the event, and so on.</p>
*/
inline PutEventsRequest& WithEntries(const Aws::Vector<PutEventsRequestEntry>& value) { SetEntries(value); return *this;}
/**
* <p>The entry that defines an event in your system. You can specify several
* parameters for the entry such as the source and type of the event, resources
* associated with the event, and so on.</p>
*/
inline PutEventsRequest& WithEntries(Aws::Vector<PutEventsRequestEntry>&& value) { SetEntries(std::move(value)); return *this;}
/**
* <p>The entry that defines an event in your system. You can specify several
* parameters for the entry such as the source and type of the event, resources
* associated with the event, and so on.</p>
*/
inline PutEventsRequest& AddEntries(const PutEventsRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
/**
* <p>The entry that defines an event in your system. You can specify several
* parameters for the entry such as the source and type of the event, resources
* associated with the event, and so on.</p>
*/
inline PutEventsRequest& AddEntries(PutEventsRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
private:
Aws::Vector<PutEventsRequestEntry> m_entries;
bool m_entriesHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,350 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Represents an event to be submitted.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsRequestEntry">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API PutEventsRequestEntry
{
public:
PutEventsRequestEntry();
PutEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
PutEventsRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The time stamp of the event, per <a
* href="https://www.rfc-editor.org/rfc/rfc3339.txt">RFC3339</a>. If no time stamp
* is provided, the time stamp of the <a>PutEvents</a> call is used.</p>
*/
inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
/**
* <p>The time stamp of the event, per <a
* href="https://www.rfc-editor.org/rfc/rfc3339.txt">RFC3339</a>. If no time stamp
* is provided, the time stamp of the <a>PutEvents</a> call is used.</p>
*/
inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
/**
* <p>The time stamp of the event, per <a
* href="https://www.rfc-editor.org/rfc/rfc3339.txt">RFC3339</a>. If no time stamp
* is provided, the time stamp of the <a>PutEvents</a> call is used.</p>
*/
inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
/**
* <p>The time stamp of the event, per <a
* href="https://www.rfc-editor.org/rfc/rfc3339.txt">RFC3339</a>. If no time stamp
* is provided, the time stamp of the <a>PutEvents</a> call is used.</p>
*/
inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
/**
* <p>The time stamp of the event, per <a
* href="https://www.rfc-editor.org/rfc/rfc3339.txt">RFC3339</a>. If no time stamp
* is provided, the time stamp of the <a>PutEvents</a> call is used.</p>
*/
inline PutEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
/**
* <p>The time stamp of the event, per <a
* href="https://www.rfc-editor.org/rfc/rfc3339.txt">RFC3339</a>. If no time stamp
* is provided, the time stamp of the <a>PutEvents</a> call is used.</p>
*/
inline PutEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
/**
* <p>The source of the event.</p>
*/
inline const Aws::String& GetSource() const{ return m_source; }
/**
* <p>The source of the event.</p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The source of the event.</p>
*/
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The source of the event.</p>
*/
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The source of the event.</p>
*/
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
/**
* <p>The source of the event.</p>
*/
inline PutEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;}
/**
* <p>The source of the event.</p>
*/
inline PutEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The source of the event.</p>
*/
inline PutEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;}
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutEventsRequestEntry& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutEventsRequestEntry& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
/**
* <p>Free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline const Aws::String& GetDetailType() const{ return m_detailType; }
/**
* <p>Free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
/**
* <p>Free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
/**
* <p>Free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); }
/**
* <p>Free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); }
/**
* <p>Free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline PutEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;}
/**
* <p>Free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline PutEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;}
/**
* <p>Free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline PutEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;}
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline const Aws::String& GetDetail() const{ return m_detail; }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline PutEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline PutEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline PutEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;}
/**
* <p>The event bus that will receive the event. Only the rules that are associated
* with this event bus will be able to match the event.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus that will receive the event. Only the rules that are associated
* with this event bus will be able to match the event.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus that will receive the event. Only the rules that are associated
* with this event bus will be able to match the event.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus that will receive the event. Only the rules that are associated
* with this event bus will be able to match the event.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus that will receive the event. Only the rules that are associated
* with this event bus will be able to match the event.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus that will receive the event. Only the rules that are associated
* with this event bus will be able to match the event.</p>
*/
inline PutEventsRequestEntry& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus that will receive the event. Only the rules that are associated
* with this event bus will be able to match the event.</p>
*/
inline PutEventsRequestEntry& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus that will receive the event. Only the rules that are associated
* with this event bus will be able to match the event.</p>
*/
inline PutEventsRequestEntry& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
private:
Aws::Utils::DateTime m_time;
bool m_timeHasBeenSet;
Aws::String m_source;
bool m_sourceHasBeenSet;
Aws::Vector<Aws::String> m_resources;
bool m_resourcesHasBeenSet;
Aws::String m_detailType;
bool m_detailTypeHasBeenSet;
Aws::String m_detail;
bool m_detailHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,110 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/PutEventsResultEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API PutEventsResult
{
public:
PutEventsResult();
PutEventsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutEventsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of failed entries.</p>
*/
inline int GetFailedEntryCount() const{ return m_failedEntryCount; }
/**
* <p>The number of failed entries.</p>
*/
inline void SetFailedEntryCount(int value) { m_failedEntryCount = value; }
/**
* <p>The number of failed entries.</p>
*/
inline PutEventsResult& WithFailedEntryCount(int value) { SetFailedEntryCount(value); return *this;}
/**
* <p>The successfully and unsuccessfully ingested events results. If the ingestion
* was successful, the entry has the event ID in it. Otherwise, you can use the
* error code and error message to identify the problem with the entry.</p>
*/
inline const Aws::Vector<PutEventsResultEntry>& GetEntries() const{ return m_entries; }
/**
* <p>The successfully and unsuccessfully ingested events results. If the ingestion
* was successful, the entry has the event ID in it. Otherwise, you can use the
* error code and error message to identify the problem with the entry.</p>
*/
inline void SetEntries(const Aws::Vector<PutEventsResultEntry>& value) { m_entries = value; }
/**
* <p>The successfully and unsuccessfully ingested events results. If the ingestion
* was successful, the entry has the event ID in it. Otherwise, you can use the
* error code and error message to identify the problem with the entry.</p>
*/
inline void SetEntries(Aws::Vector<PutEventsResultEntry>&& value) { m_entries = std::move(value); }
/**
* <p>The successfully and unsuccessfully ingested events results. If the ingestion
* was successful, the entry has the event ID in it. Otherwise, you can use the
* error code and error message to identify the problem with the entry.</p>
*/
inline PutEventsResult& WithEntries(const Aws::Vector<PutEventsResultEntry>& value) { SetEntries(value); return *this;}
/**
* <p>The successfully and unsuccessfully ingested events results. If the ingestion
* was successful, the entry has the event ID in it. Otherwise, you can use the
* error code and error message to identify the problem with the entry.</p>
*/
inline PutEventsResult& WithEntries(Aws::Vector<PutEventsResultEntry>&& value) { SetEntries(std::move(value)); return *this;}
/**
* <p>The successfully and unsuccessfully ingested events results. If the ingestion
* was successful, the entry has the event ID in it. Otherwise, you can use the
* error code and error message to identify the problem with the entry.</p>
*/
inline PutEventsResult& AddEntries(const PutEventsResultEntry& value) { m_entries.push_back(value); return *this; }
/**
* <p>The successfully and unsuccessfully ingested events results. If the ingestion
* was successful, the entry has the event ID in it. Otherwise, you can use the
* error code and error message to identify the problem with the entry.</p>
*/
inline PutEventsResult& AddEntries(PutEventsResultEntry&& value) { m_entries.push_back(std::move(value)); return *this; }
private:
int m_failedEntryCount;
Aws::Vector<PutEventsResultEntry> m_entries;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Represents an event that failed to be submitted.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEventsResultEntry">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API PutEventsResultEntry
{
public:
PutEventsResultEntry();
PutEventsResultEntry(Aws::Utils::Json::JsonView jsonValue);
PutEventsResultEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the event.</p>
*/
inline const Aws::String& GetEventId() const{ return m_eventId; }
/**
* <p>The ID of the event.</p>
*/
inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
/**
* <p>The ID of the event.</p>
*/
inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
/**
* <p>The ID of the event.</p>
*/
inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
/**
* <p>The ID of the event.</p>
*/
inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
/**
* <p>The ID of the event.</p>
*/
inline PutEventsResultEntry& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
/**
* <p>The ID of the event.</p>
*/
inline PutEventsResultEntry& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
/**
* <p>The ID of the event.</p>
*/
inline PutEventsResultEntry& WithEventId(const char* value) { SetEventId(value); return *this;}
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline PutEventsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline PutEventsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline PutEventsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline PutEventsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline PutEventsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline PutEventsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_eventId;
bool m_eventIdHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/PutPartnerEventsRequestEntry.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequest : public CloudWatchEventsRequest
{
public:
PutPartnerEventsRequest();
// 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 "PutPartnerEvents"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The list of events to write to the event bus.</p>
*/
inline const Aws::Vector<PutPartnerEventsRequestEntry>& GetEntries() const{ return m_entries; }
/**
* <p>The list of events to write to the event bus.</p>
*/
inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
/**
* <p>The list of events to write to the event bus.</p>
*/
inline void SetEntries(const Aws::Vector<PutPartnerEventsRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
/**
* <p>The list of events to write to the event bus.</p>
*/
inline void SetEntries(Aws::Vector<PutPartnerEventsRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
/**
* <p>The list of events to write to the event bus.</p>
*/
inline PutPartnerEventsRequest& WithEntries(const Aws::Vector<PutPartnerEventsRequestEntry>& value) { SetEntries(value); return *this;}
/**
* <p>The list of events to write to the event bus.</p>
*/
inline PutPartnerEventsRequest& WithEntries(Aws::Vector<PutPartnerEventsRequestEntry>&& value) { SetEntries(std::move(value)); return *this;}
/**
* <p>The list of events to write to the event bus.</p>
*/
inline PutPartnerEventsRequest& AddEntries(const PutPartnerEventsRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
/**
* <p>The list of events to write to the event bus.</p>
*/
inline PutPartnerEventsRequest& AddEntries(PutPartnerEventsRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
private:
Aws::Vector<PutPartnerEventsRequestEntry> m_entries;
bool m_entriesHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,287 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>The details about an event generated by an SaaS partner.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEventsRequestEntry">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry
{
public:
PutPartnerEventsRequestEntry();
PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
PutPartnerEventsRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The date and time of the event.</p>
*/
inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
/**
* <p>The date and time of the event.</p>
*/
inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
/**
* <p>The date and time of the event.</p>
*/
inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
/**
* <p>The date and time of the event.</p>
*/
inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
/**
* <p>The date and time of the event.</p>
*/
inline PutPartnerEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
/**
* <p>The date and time of the event.</p>
*/
inline PutPartnerEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
/**
* <p>The event source that is generating the evntry.</p>
*/
inline const Aws::String& GetSource() const{ return m_source; }
/**
* <p>The event source that is generating the evntry.</p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The event source that is generating the evntry.</p>
*/
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The event source that is generating the evntry.</p>
*/
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The event source that is generating the evntry.</p>
*/
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
/**
* <p>The event source that is generating the evntry.</p>
*/
inline PutPartnerEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;}
/**
* <p>The event source that is generating the evntry.</p>
*/
inline PutPartnerEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The event source that is generating the evntry.</p>
*/
inline PutPartnerEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;}
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutPartnerEventsRequestEntry& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutPartnerEventsRequestEntry& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutPartnerEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutPartnerEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
/**
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
* primarily concerns. Any number, including zero, may be present.</p>
*/
inline PutPartnerEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
/**
* <p>A free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline const Aws::String& GetDetailType() const{ return m_detailType; }
/**
* <p>A free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
/**
* <p>A free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
/**
* <p>A free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); }
/**
* <p>A free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); }
/**
* <p>A free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline PutPartnerEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;}
/**
* <p>A free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline PutPartnerEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;}
/**
* <p>A free-form string used to decide what fields to expect in the event
* detail.</p>
*/
inline PutPartnerEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;}
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline const Aws::String& GetDetail() const{ return m_detail; }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline PutPartnerEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline PutPartnerEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
/**
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
* contain fields and nested subobjects.</p>
*/
inline PutPartnerEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;}
private:
Aws::Utils::DateTime m_time;
bool m_timeHasBeenSet;
Aws::String m_source;
bool m_sourceHasBeenSet;
Aws::Vector<Aws::String> m_resources;
bool m_resourcesHasBeenSet;
Aws::String m_detailType;
bool m_detailTypeHasBeenSet;
Aws::String m_detail;
bool m_detailHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,106 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/PutPartnerEventsResultEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API PutPartnerEventsResult
{
public:
PutPartnerEventsResult();
PutPartnerEventsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutPartnerEventsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of events from this operation that could not be written to the
* partner event bus.</p>
*/
inline int GetFailedEntryCount() const{ return m_failedEntryCount; }
/**
* <p>The number of events from this operation that could not be written to the
* partner event bus.</p>
*/
inline void SetFailedEntryCount(int value) { m_failedEntryCount = value; }
/**
* <p>The number of events from this operation that could not be written to the
* partner event bus.</p>
*/
inline PutPartnerEventsResult& WithFailedEntryCount(int value) { SetFailedEntryCount(value); return *this;}
/**
* <p>The list of events from this operation that were successfully written to the
* partner event bus.</p>
*/
inline const Aws::Vector<PutPartnerEventsResultEntry>& GetEntries() const{ return m_entries; }
/**
* <p>The list of events from this operation that were successfully written to the
* partner event bus.</p>
*/
inline void SetEntries(const Aws::Vector<PutPartnerEventsResultEntry>& value) { m_entries = value; }
/**
* <p>The list of events from this operation that were successfully written to the
* partner event bus.</p>
*/
inline void SetEntries(Aws::Vector<PutPartnerEventsResultEntry>&& value) { m_entries = std::move(value); }
/**
* <p>The list of events from this operation that were successfully written to the
* partner event bus.</p>
*/
inline PutPartnerEventsResult& WithEntries(const Aws::Vector<PutPartnerEventsResultEntry>& value) { SetEntries(value); return *this;}
/**
* <p>The list of events from this operation that were successfully written to the
* partner event bus.</p>
*/
inline PutPartnerEventsResult& WithEntries(Aws::Vector<PutPartnerEventsResultEntry>&& value) { SetEntries(std::move(value)); return *this;}
/**
* <p>The list of events from this operation that were successfully written to the
* partner event bus.</p>
*/
inline PutPartnerEventsResult& AddEntries(const PutPartnerEventsResultEntry& value) { m_entries.push_back(value); return *this; }
/**
* <p>The list of events from this operation that were successfully written to the
* partner event bus.</p>
*/
inline PutPartnerEventsResult& AddEntries(PutPartnerEventsResultEntry&& value) { m_entries.push_back(std::move(value)); return *this; }
private:
int m_failedEntryCount;
Aws::Vector<PutPartnerEventsResultEntry> m_entries;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Represents an event that a partner tried to generate, but
* failed.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEventsResultEntry">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API PutPartnerEventsResultEntry
{
public:
PutPartnerEventsResultEntry();
PutPartnerEventsResultEntry(Aws::Utils::Json::JsonView jsonValue);
PutPartnerEventsResultEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the event.</p>
*/
inline const Aws::String& GetEventId() const{ return m_eventId; }
/**
* <p>The ID of the event.</p>
*/
inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
/**
* <p>The ID of the event.</p>
*/
inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
/**
* <p>The ID of the event.</p>
*/
inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
/**
* <p>The ID of the event.</p>
*/
inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
/**
* <p>The ID of the event.</p>
*/
inline PutPartnerEventsResultEntry& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
/**
* <p>The ID of the event.</p>
*/
inline PutPartnerEventsResultEntry& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
/**
* <p>The ID of the event.</p>
*/
inline PutPartnerEventsResultEntry& WithEventId(const char* value) { SetEventId(value); return *this;}
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline PutPartnerEventsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline PutPartnerEventsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error code that indicates why the event submission failed.</p>
*/
inline PutPartnerEventsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline PutPartnerEventsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline PutPartnerEventsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The error message that explains why the event submission failed.</p>
*/
inline PutPartnerEventsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_eventId;
bool m_eventIdHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,402 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/Condition.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API PutPermissionRequest : public CloudWatchEventsRequest
{
public:
PutPermissionRequest();
// 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 "PutPermission"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline PutPermissionRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline PutPermissionRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus associated with the rule. If you omit this, the default event
* bus is used.</p>
*/
inline PutPermissionRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
/**
* <p>The action that you are enabling the other account to perform. Currently,
* this must be <code>events:PutEvents</code>.</p>
*/
inline const Aws::String& GetAction() const{ return m_action; }
/**
* <p>The action that you are enabling the other account to perform. Currently,
* this must be <code>events:PutEvents</code>.</p>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>The action that you are enabling the other account to perform. Currently,
* this must be <code>events:PutEvents</code>.</p>
*/
inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>The action that you are enabling the other account to perform. Currently,
* this must be <code>events:PutEvents</code>.</p>
*/
inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>The action that you are enabling the other account to perform. Currently,
* this must be <code>events:PutEvents</code>.</p>
*/
inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
/**
* <p>The action that you are enabling the other account to perform. Currently,
* this must be <code>events:PutEvents</code>.</p>
*/
inline PutPermissionRequest& WithAction(const Aws::String& value) { SetAction(value); return *this;}
/**
* <p>The action that you are enabling the other account to perform. Currently,
* this must be <code>events:PutEvents</code>.</p>
*/
inline PutPermissionRequest& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>The action that you are enabling the other account to perform. Currently,
* this must be <code>events:PutEvents</code>.</p>
*/
inline PutPermissionRequest& WithAction(const char* value) { SetAction(value); return *this;}
/**
* <p>The 12-digit AWS account ID that you are permitting to put events to your
* default event bus. Specify "*" to permit any account to put events to your
* default event bus.</p> <p>If you specify "*" without specifying
* <code>Condition</code>, avoid creating rules that may match undesirable events.
* To create more secure rules, make sure that the event pattern for each rule
* contains an <code>account</code> field with a specific account ID from which to
* receive events. Rules with an account field do not match any events sent from
* other accounts.</p>
*/
inline const Aws::String& GetPrincipal() const{ return m_principal; }
/**
* <p>The 12-digit AWS account ID that you are permitting to put events to your
* default event bus. Specify "*" to permit any account to put events to your
* default event bus.</p> <p>If you specify "*" without specifying
* <code>Condition</code>, avoid creating rules that may match undesirable events.
* To create more secure rules, make sure that the event pattern for each rule
* contains an <code>account</code> field with a specific account ID from which to
* receive events. Rules with an account field do not match any events sent from
* other accounts.</p>
*/
inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
/**
* <p>The 12-digit AWS account ID that you are permitting to put events to your
* default event bus. Specify "*" to permit any account to put events to your
* default event bus.</p> <p>If you specify "*" without specifying
* <code>Condition</code>, avoid creating rules that may match undesirable events.
* To create more secure rules, make sure that the event pattern for each rule
* contains an <code>account</code> field with a specific account ID from which to
* receive events. Rules with an account field do not match any events sent from
* other accounts.</p>
*/
inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
/**
* <p>The 12-digit AWS account ID that you are permitting to put events to your
* default event bus. Specify "*" to permit any account to put events to your
* default event bus.</p> <p>If you specify "*" without specifying
* <code>Condition</code>, avoid creating rules that may match undesirable events.
* To create more secure rules, make sure that the event pattern for each rule
* contains an <code>account</code> field with a specific account ID from which to
* receive events. Rules with an account field do not match any events sent from
* other accounts.</p>
*/
inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
/**
* <p>The 12-digit AWS account ID that you are permitting to put events to your
* default event bus. Specify "*" to permit any account to put events to your
* default event bus.</p> <p>If you specify "*" without specifying
* <code>Condition</code>, avoid creating rules that may match undesirable events.
* To create more secure rules, make sure that the event pattern for each rule
* contains an <code>account</code> field with a specific account ID from which to
* receive events. Rules with an account field do not match any events sent from
* other accounts.</p>
*/
inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
/**
* <p>The 12-digit AWS account ID that you are permitting to put events to your
* default event bus. Specify "*" to permit any account to put events to your
* default event bus.</p> <p>If you specify "*" without specifying
* <code>Condition</code>, avoid creating rules that may match undesirable events.
* To create more secure rules, make sure that the event pattern for each rule
* contains an <code>account</code> field with a specific account ID from which to
* receive events. Rules with an account field do not match any events sent from
* other accounts.</p>
*/
inline PutPermissionRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
/**
* <p>The 12-digit AWS account ID that you are permitting to put events to your
* default event bus. Specify "*" to permit any account to put events to your
* default event bus.</p> <p>If you specify "*" without specifying
* <code>Condition</code>, avoid creating rules that may match undesirable events.
* To create more secure rules, make sure that the event pattern for each rule
* contains an <code>account</code> field with a specific account ID from which to
* receive events. Rules with an account field do not match any events sent from
* other accounts.</p>
*/
inline PutPermissionRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
/**
* <p>The 12-digit AWS account ID that you are permitting to put events to your
* default event bus. Specify "*" to permit any account to put events to your
* default event bus.</p> <p>If you specify "*" without specifying
* <code>Condition</code>, avoid creating rules that may match undesirable events.
* To create more secure rules, make sure that the event pattern for each rule
* contains an <code>account</code> field with a specific account ID from which to
* receive events. Rules with an account field do not match any events sent from
* other accounts.</p>
*/
inline PutPermissionRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
/**
* <p>An identifier string for the external account that you are granting
* permissions to. If you later want to revoke the permission for this external
* account, specify this <code>StatementId</code> when you run
* <a>RemovePermission</a>.</p>
*/
inline const Aws::String& GetStatementId() const{ return m_statementId; }
/**
* <p>An identifier string for the external account that you are granting
* permissions to. If you later want to revoke the permission for this external
* account, specify this <code>StatementId</code> when you run
* <a>RemovePermission</a>.</p>
*/
inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
/**
* <p>An identifier string for the external account that you are granting
* permissions to. If you later want to revoke the permission for this external
* account, specify this <code>StatementId</code> when you run
* <a>RemovePermission</a>.</p>
*/
inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
/**
* <p>An identifier string for the external account that you are granting
* permissions to. If you later want to revoke the permission for this external
* account, specify this <code>StatementId</code> when you run
* <a>RemovePermission</a>.</p>
*/
inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
/**
* <p>An identifier string for the external account that you are granting
* permissions to. If you later want to revoke the permission for this external
* account, specify this <code>StatementId</code> when you run
* <a>RemovePermission</a>.</p>
*/
inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
/**
* <p>An identifier string for the external account that you are granting
* permissions to. If you later want to revoke the permission for this external
* account, specify this <code>StatementId</code> when you run
* <a>RemovePermission</a>.</p>
*/
inline PutPermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
/**
* <p>An identifier string for the external account that you are granting
* permissions to. If you later want to revoke the permission for this external
* account, specify this <code>StatementId</code> when you run
* <a>RemovePermission</a>.</p>
*/
inline PutPermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
/**
* <p>An identifier string for the external account that you are granting
* permissions to. If you later want to revoke the permission for this external
* account, specify this <code>StatementId</code> when you run
* <a>RemovePermission</a>.</p>
*/
inline PutPermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
/**
* <p>This parameter enables you to limit the permission to accounts that fulfill a
* certain condition, such as being a member of a certain AWS organization. For
* more information about AWS Organizations, see <a
* href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">What
* Is AWS Organizations</a> in the <i>AWS Organizations User Guide</i>.</p> <p>If
* you specify <code>Condition</code> with an AWS organization ID, and specify "*"
* as the value for <code>Principal</code>, you grant permission to all the
* accounts in the named organization.</p> <p>The <code>Condition</code> is a JSON
* string which must contain <code>Type</code>, <code>Key</code>, and
* <code>Value</code> fields.</p>
*/
inline const Condition& GetCondition() const{ return m_condition; }
/**
* <p>This parameter enables you to limit the permission to accounts that fulfill a
* certain condition, such as being a member of a certain AWS organization. For
* more information about AWS Organizations, see <a
* href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">What
* Is AWS Organizations</a> in the <i>AWS Organizations User Guide</i>.</p> <p>If
* you specify <code>Condition</code> with an AWS organization ID, and specify "*"
* as the value for <code>Principal</code>, you grant permission to all the
* accounts in the named organization.</p> <p>The <code>Condition</code> is a JSON
* string which must contain <code>Type</code>, <code>Key</code>, and
* <code>Value</code> fields.</p>
*/
inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
/**
* <p>This parameter enables you to limit the permission to accounts that fulfill a
* certain condition, such as being a member of a certain AWS organization. For
* more information about AWS Organizations, see <a
* href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">What
* Is AWS Organizations</a> in the <i>AWS Organizations User Guide</i>.</p> <p>If
* you specify <code>Condition</code> with an AWS organization ID, and specify "*"
* as the value for <code>Principal</code>, you grant permission to all the
* accounts in the named organization.</p> <p>The <code>Condition</code> is a JSON
* string which must contain <code>Type</code>, <code>Key</code>, and
* <code>Value</code> fields.</p>
*/
inline void SetCondition(const Condition& value) { m_conditionHasBeenSet = true; m_condition = value; }
/**
* <p>This parameter enables you to limit the permission to accounts that fulfill a
* certain condition, such as being a member of a certain AWS organization. For
* more information about AWS Organizations, see <a
* href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">What
* Is AWS Organizations</a> in the <i>AWS Organizations User Guide</i>.</p> <p>If
* you specify <code>Condition</code> with an AWS organization ID, and specify "*"
* as the value for <code>Principal</code>, you grant permission to all the
* accounts in the named organization.</p> <p>The <code>Condition</code> is a JSON
* string which must contain <code>Type</code>, <code>Key</code>, and
* <code>Value</code> fields.</p>
*/
inline void SetCondition(Condition&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
/**
* <p>This parameter enables you to limit the permission to accounts that fulfill a
* certain condition, such as being a member of a certain AWS organization. For
* more information about AWS Organizations, see <a
* href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">What
* Is AWS Organizations</a> in the <i>AWS Organizations User Guide</i>.</p> <p>If
* you specify <code>Condition</code> with an AWS organization ID, and specify "*"
* as the value for <code>Principal</code>, you grant permission to all the
* accounts in the named organization.</p> <p>The <code>Condition</code> is a JSON
* string which must contain <code>Type</code>, <code>Key</code>, and
* <code>Value</code> fields.</p>
*/
inline PutPermissionRequest& WithCondition(const Condition& value) { SetCondition(value); return *this;}
/**
* <p>This parameter enables you to limit the permission to accounts that fulfill a
* certain condition, such as being a member of a certain AWS organization. For
* more information about AWS Organizations, see <a
* href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">What
* Is AWS Organizations</a> in the <i>AWS Organizations User Guide</i>.</p> <p>If
* you specify <code>Condition</code> with an AWS organization ID, and specify "*"
* as the value for <code>Principal</code>, you grant permission to all the
* accounts in the named organization.</p> <p>The <code>Condition</code> is a JSON
* string which must contain <code>Type</code>, <code>Key</code>, and
* <code>Value</code> fields.</p>
*/
inline PutPermissionRequest& WithCondition(Condition&& value) { SetCondition(std::move(value)); return *this;}
private:
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
Aws::String m_action;
bool m_actionHasBeenSet;
Aws::String m_principal;
bool m_principalHasBeenSet;
Aws::String m_statementId;
bool m_statementIdHasBeenSet;
Condition m_condition;
bool m_conditionHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,418 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/RuleState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/Tag.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API PutRuleRequest : public CloudWatchEventsRequest
{
public:
PutRuleRequest();
// 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 "PutRule"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the rule that you are creating or updating.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the rule that you are creating or updating.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the rule that you are creating or updating.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the rule that you are creating or updating.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the rule that you are creating or updating.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the rule that you are creating or updating.</p>
*/
inline PutRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the rule that you are creating or updating.</p>
*/
inline PutRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the rule that you are creating or updating.</p>
*/
inline PutRuleRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
* minutes)".</p>
*/
inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
* minutes)".</p>
*/
inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
* minutes)".</p>
*/
inline PutRuleRequest& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
* minutes)".</p>
*/
inline PutRuleRequest& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5
* minutes)".</p>
*/
inline PutRuleRequest& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline PutRuleRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline PutRuleRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline PutRuleRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
/**
* <p>Indicates whether the rule is enabled or disabled.</p>
*/
inline const RuleState& GetState() const{ return m_state; }
/**
* <p>Indicates whether the rule is enabled or disabled.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>Indicates whether the rule is enabled or disabled.</p>
*/
inline void SetState(const RuleState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>Indicates whether the rule is enabled or disabled.</p>
*/
inline void SetState(RuleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>Indicates whether the rule is enabled or disabled.</p>
*/
inline PutRuleRequest& WithState(const RuleState& value) { SetState(value); return *this;}
/**
* <p>Indicates whether the rule is enabled or disabled.</p>
*/
inline PutRuleRequest& WithState(RuleState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>A description of the rule.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the rule.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the rule.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the rule.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the rule.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the rule.</p>
*/
inline PutRuleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the rule.</p>
*/
inline PutRuleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the rule.</p>
*/
inline PutRuleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline PutRuleRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline PutRuleRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role associated with the rule.</p>
*/
inline PutRuleRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The list of key-value pairs to associate with the rule.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The list of key-value pairs to associate with the rule.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The list of key-value pairs to associate with the rule.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The list of key-value pairs to associate with the rule.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The list of key-value pairs to associate with the rule.</p>
*/
inline PutRuleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The list of key-value pairs to associate with the rule.</p>
*/
inline PutRuleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The list of key-value pairs to associate with the rule.</p>
*/
inline PutRuleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The list of key-value pairs to associate with the rule.</p>
*/
inline PutRuleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>The event bus to associate with this rule. If you omit this, the default
* event bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus to associate with this rule. If you omit this, the default
* event bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus to associate with this rule. If you omit this, the default
* event bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus to associate with this rule. If you omit this, the default
* event bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus to associate with this rule. If you omit this, the default
* event bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus to associate with this rule. If you omit this, the default
* event bus is used.</p>
*/
inline PutRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus to associate with this rule. If you omit this, the default
* event bus is used.</p>
*/
inline PutRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus to associate with this rule. If you omit this, the default
* event bus is used.</p>
*/
inline PutRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_scheduleExpression;
bool m_scheduleExpressionHasBeenSet;
Aws::String m_eventPattern;
bool m_eventPatternHasBeenSet;
RuleState m_state;
bool m_stateHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API PutRuleResult
{
public:
PutRuleResult();
PutRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetRuleArn(const Aws::String& value) { m_ruleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetRuleArn(Aws::String&& value) { m_ruleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetRuleArn(const char* value) { m_ruleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline PutRuleResult& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline PutRuleResult& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline PutRuleResult& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
private:
Aws::String m_ruleArn;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/Target.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API PutTargetsRequest : public CloudWatchEventsRequest
{
public:
PutTargetsRequest();
// 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 "PutTargets"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetRule() const{ return m_rule; }
/**
* <p>The name of the rule.</p>
*/
inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(const char* value) { m_ruleHasBeenSet = true; m_rule.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline PutTargetsRequest& WithRule(const Aws::String& value) { SetRule(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline PutTargetsRequest& WithRule(Aws::String&& value) { SetRule(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline PutTargetsRequest& WithRule(const char* value) { SetRule(value); return *this;}
/**
* <p>The name of the event bus associated with the rule. If you omit this, the
* default event bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The name of the event bus associated with the rule. If you omit this, the
* default event bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The name of the event bus associated with the rule. If you omit this, the
* default event bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The name of the event bus associated with the rule. If you omit this, the
* default event bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The name of the event bus associated with the rule. If you omit this, the
* default event bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The name of the event bus associated with the rule. If you omit this, the
* default event bus is used.</p>
*/
inline PutTargetsRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The name of the event bus associated with the rule. If you omit this, the
* default event bus is used.</p>
*/
inline PutTargetsRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The name of the event bus associated with the rule. If you omit this, the
* default event bus is used.</p>
*/
inline PutTargetsRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
/**
* <p>The targets to update or add to the rule.</p>
*/
inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
/**
* <p>The targets to update or add to the rule.</p>
*/
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
/**
* <p>The targets to update or add to the rule.</p>
*/
inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
/**
* <p>The targets to update or add to the rule.</p>
*/
inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
/**
* <p>The targets to update or add to the rule.</p>
*/
inline PutTargetsRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
/**
* <p>The targets to update or add to the rule.</p>
*/
inline PutTargetsRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
/**
* <p>The targets to update or add to the rule.</p>
*/
inline PutTargetsRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
/**
* <p>The targets to update or add to the rule.</p>
*/
inline PutTargetsRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
private:
Aws::String m_rule;
bool m_ruleHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
Aws::Vector<Target> m_targets;
bool m_targetsHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,96 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/PutTargetsResultEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API PutTargetsResult
{
public:
PutTargetsResult();
PutTargetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutTargetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of failed entries.</p>
*/
inline int GetFailedEntryCount() const{ return m_failedEntryCount; }
/**
* <p>The number of failed entries.</p>
*/
inline void SetFailedEntryCount(int value) { m_failedEntryCount = value; }
/**
* <p>The number of failed entries.</p>
*/
inline PutTargetsResult& WithFailedEntryCount(int value) { SetFailedEntryCount(value); return *this;}
/**
* <p>The failed target entries.</p>
*/
inline const Aws::Vector<PutTargetsResultEntry>& GetFailedEntries() const{ return m_failedEntries; }
/**
* <p>The failed target entries.</p>
*/
inline void SetFailedEntries(const Aws::Vector<PutTargetsResultEntry>& value) { m_failedEntries = value; }
/**
* <p>The failed target entries.</p>
*/
inline void SetFailedEntries(Aws::Vector<PutTargetsResultEntry>&& value) { m_failedEntries = std::move(value); }
/**
* <p>The failed target entries.</p>
*/
inline PutTargetsResult& WithFailedEntries(const Aws::Vector<PutTargetsResultEntry>& value) { SetFailedEntries(value); return *this;}
/**
* <p>The failed target entries.</p>
*/
inline PutTargetsResult& WithFailedEntries(Aws::Vector<PutTargetsResultEntry>&& value) { SetFailedEntries(std::move(value)); return *this;}
/**
* <p>The failed target entries.</p>
*/
inline PutTargetsResult& AddFailedEntries(const PutTargetsResultEntry& value) { m_failedEntries.push_back(value); return *this; }
/**
* <p>The failed target entries.</p>
*/
inline PutTargetsResult& AddFailedEntries(PutTargetsResultEntry&& value) { m_failedEntries.push_back(std::move(value)); return *this; }
private:
int m_failedEntryCount;
Aws::Vector<PutTargetsResultEntry> m_failedEntries;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Represents a target that failed to be added to a rule.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResultEntry">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API PutTargetsResultEntry
{
public:
PutTargetsResultEntry();
PutTargetsResultEntry(Aws::Utils::Json::JsonView jsonValue);
PutTargetsResultEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the target.</p>
*/
inline const Aws::String& GetTargetId() const{ return m_targetId; }
/**
* <p>The ID of the target.</p>
*/
inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
/**
* <p>The ID of the target.</p>
*/
inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
/**
* <p>The ID of the target.</p>
*/
inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
/**
* <p>The ID of the target.</p>
*/
inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
/**
* <p>The ID of the target.</p>
*/
inline PutTargetsResultEntry& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
/**
* <p>The ID of the target.</p>
*/
inline PutTargetsResultEntry& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
/**
* <p>The ID of the target.</p>
*/
inline PutTargetsResultEntry& WithTargetId(const char* value) { SetTargetId(value); return *this;}
/**
* <p>The error code that indicates why the target addition failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error code that indicates why the target addition failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error code that indicates why the target addition failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error code that indicates why the target addition failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error code that indicates why the target addition failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error code that indicates why the target addition failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline PutTargetsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error code that indicates why the target addition failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline PutTargetsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error code that indicates why the target addition failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline PutTargetsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The error message that explains why the target addition failed.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The error message that explains why the target addition failed.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The error message that explains why the target addition failed.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The error message that explains why the target addition failed.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The error message that explains why the target addition failed.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The error message that explains why the target addition failed.</p>
*/
inline PutTargetsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The error message that explains why the target addition failed.</p>
*/
inline PutTargetsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The error message that explains why the target addition failed.</p>
*/
inline PutTargetsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_targetId;
bool m_targetIdHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API RemovePermissionRequest : public CloudWatchEventsRequest
{
public:
RemovePermissionRequest();
// 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 "RemovePermission"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The statement ID corresponding to the account that is no longer allowed to
* put events to the default event bus.</p>
*/
inline const Aws::String& GetStatementId() const{ return m_statementId; }
/**
* <p>The statement ID corresponding to the account that is no longer allowed to
* put events to the default event bus.</p>
*/
inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
/**
* <p>The statement ID corresponding to the account that is no longer allowed to
* put events to the default event bus.</p>
*/
inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
/**
* <p>The statement ID corresponding to the account that is no longer allowed to
* put events to the default event bus.</p>
*/
inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
/**
* <p>The statement ID corresponding to the account that is no longer allowed to
* put events to the default event bus.</p>
*/
inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
/**
* <p>The statement ID corresponding to the account that is no longer allowed to
* put events to the default event bus.</p>
*/
inline RemovePermissionRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
/**
* <p>The statement ID corresponding to the account that is no longer allowed to
* put events to the default event bus.</p>
*/
inline RemovePermissionRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
/**
* <p>The statement ID corresponding to the account that is no longer allowed to
* put events to the default event bus.</p>
*/
inline RemovePermissionRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
/**
* <p>The name of the event bus to revoke permissions for. If you omit this, the
* default event bus is used.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The name of the event bus to revoke permissions for. If you omit this, the
* default event bus is used.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The name of the event bus to revoke permissions for. If you omit this, the
* default event bus is used.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The name of the event bus to revoke permissions for. If you omit this, the
* default event bus is used.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The name of the event bus to revoke permissions for. If you omit this, the
* default event bus is used.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The name of the event bus to revoke permissions for. If you omit this, the
* default event bus is used.</p>
*/
inline RemovePermissionRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The name of the event bus to revoke permissions for. If you omit this, the
* default event bus is used.</p>
*/
inline RemovePermissionRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The name of the event bus to revoke permissions for. If you omit this, the
* default event bus is used.</p>
*/
inline RemovePermissionRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
private:
Aws::String m_statementId;
bool m_statementIdHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,223 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API RemoveTargetsRequest : public CloudWatchEventsRequest
{
public:
RemoveTargetsRequest();
// 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 "RemoveTargets"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetRule() const{ return m_rule; }
/**
* <p>The name of the rule.</p>
*/
inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetRule(const char* value) { m_ruleHasBeenSet = true; m_rule.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline RemoveTargetsRequest& WithRule(const Aws::String& value) { SetRule(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline RemoveTargetsRequest& WithRule(Aws::String&& value) { SetRule(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline RemoveTargetsRequest& WithRule(const char* value) { SetRule(value); return *this;}
/**
* <p>The name of the event bus associated with the rule.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The name of the event bus associated with the rule.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The name of the event bus associated with the rule.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The name of the event bus associated with the rule.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The name of the event bus associated with the rule.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The name of the event bus associated with the rule.</p>
*/
inline RemoveTargetsRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The name of the event bus associated with the rule.</p>
*/
inline RemoveTargetsRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The name of the event bus associated with the rule.</p>
*/
inline RemoveTargetsRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline RemoveTargetsRequest& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline RemoveTargetsRequest& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline RemoveTargetsRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline RemoveTargetsRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
/**
* <p>The IDs of the targets to remove from the rule.</p>
*/
inline RemoveTargetsRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, you must
* specify <code>Force</code> as <code>True</code> to remove targets. This
* parameter is ignored for rules that are not managed rules. You can check whether
* a rule is a managed rule by using <code>DescribeRule</code> or
* <code>ListRules</code> and checking the <code>ManagedBy</code> field of the
* response.</p>
*/
inline bool GetForce() const{ return m_force; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, you must
* specify <code>Force</code> as <code>True</code> to remove targets. This
* parameter is ignored for rules that are not managed rules. You can check whether
* a rule is a managed rule by using <code>DescribeRule</code> or
* <code>ListRules</code> and checking the <code>ManagedBy</code> field of the
* response.</p>
*/
inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, you must
* specify <code>Force</code> as <code>True</code> to remove targets. This
* parameter is ignored for rules that are not managed rules. You can check whether
* a rule is a managed rule by using <code>DescribeRule</code> or
* <code>ListRules</code> and checking the <code>ManagedBy</code> field of the
* response.</p>
*/
inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
/**
* <p>If this is a managed rule, created by an AWS service on your behalf, you must
* specify <code>Force</code> as <code>True</code> to remove targets. This
* parameter is ignored for rules that are not managed rules. You can check whether
* a rule is a managed rule by using <code>DescribeRule</code> or
* <code>ListRules</code> and checking the <code>ManagedBy</code> field of the
* response.</p>
*/
inline RemoveTargetsRequest& WithForce(bool value) { SetForce(value); return *this;}
private:
Aws::String m_rule;
bool m_ruleHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
Aws::Vector<Aws::String> m_ids;
bool m_idsHasBeenSet;
bool m_force;
bool m_forceHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,96 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/RemoveTargetsResultEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API RemoveTargetsResult
{
public:
RemoveTargetsResult();
RemoveTargetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
RemoveTargetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The number of failed entries.</p>
*/
inline int GetFailedEntryCount() const{ return m_failedEntryCount; }
/**
* <p>The number of failed entries.</p>
*/
inline void SetFailedEntryCount(int value) { m_failedEntryCount = value; }
/**
* <p>The number of failed entries.</p>
*/
inline RemoveTargetsResult& WithFailedEntryCount(int value) { SetFailedEntryCount(value); return *this;}
/**
* <p>The failed target entries.</p>
*/
inline const Aws::Vector<RemoveTargetsResultEntry>& GetFailedEntries() const{ return m_failedEntries; }
/**
* <p>The failed target entries.</p>
*/
inline void SetFailedEntries(const Aws::Vector<RemoveTargetsResultEntry>& value) { m_failedEntries = value; }
/**
* <p>The failed target entries.</p>
*/
inline void SetFailedEntries(Aws::Vector<RemoveTargetsResultEntry>&& value) { m_failedEntries = std::move(value); }
/**
* <p>The failed target entries.</p>
*/
inline RemoveTargetsResult& WithFailedEntries(const Aws::Vector<RemoveTargetsResultEntry>& value) { SetFailedEntries(value); return *this;}
/**
* <p>The failed target entries.</p>
*/
inline RemoveTargetsResult& WithFailedEntries(Aws::Vector<RemoveTargetsResultEntry>&& value) { SetFailedEntries(std::move(value)); return *this;}
/**
* <p>The failed target entries.</p>
*/
inline RemoveTargetsResult& AddFailedEntries(const RemoveTargetsResultEntry& value) { m_failedEntries.push_back(value); return *this; }
/**
* <p>The failed target entries.</p>
*/
inline RemoveTargetsResult& AddFailedEntries(RemoveTargetsResultEntry&& value) { m_failedEntries.push_back(std::move(value)); return *this; }
private:
int m_failedEntryCount;
Aws::Vector<RemoveTargetsResultEntry> m_failedEntries;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Represents a target that failed to be removed from a rule.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargetsResultEntry">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API RemoveTargetsResultEntry
{
public:
RemoveTargetsResultEntry();
RemoveTargetsResultEntry(Aws::Utils::Json::JsonView jsonValue);
RemoveTargetsResultEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the target.</p>
*/
inline const Aws::String& GetTargetId() const{ return m_targetId; }
/**
* <p>The ID of the target.</p>
*/
inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
/**
* <p>The ID of the target.</p>
*/
inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
/**
* <p>The ID of the target.</p>
*/
inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
/**
* <p>The ID of the target.</p>
*/
inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
/**
* <p>The ID of the target.</p>
*/
inline RemoveTargetsResultEntry& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
/**
* <p>The ID of the target.</p>
*/
inline RemoveTargetsResultEntry& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
/**
* <p>The ID of the target.</p>
*/
inline RemoveTargetsResultEntry& WithTargetId(const char* value) { SetTargetId(value); return *this;}
/**
* <p>The error code that indicates why the target removal failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error code that indicates why the target removal failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error code that indicates why the target removal failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error code that indicates why the target removal failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error code that indicates why the target removal failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error code that indicates why the target removal failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline RemoveTargetsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error code that indicates why the target removal failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline RemoveTargetsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error code that indicates why the target removal failed. If the value is
* <code>ConcurrentModificationException</code>, too many requests were made at the
* same time.</p>
*/
inline RemoveTargetsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The error message that explains why the target removal failed.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The error message that explains why the target removal failed.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The error message that explains why the target removal failed.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The error message that explains why the target removal failed.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The error message that explains why the target removal failed.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The error message that explains why the target removal failed.</p>
*/
inline RemoveTargetsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The error message that explains why the target removal failed.</p>
*/
inline RemoveTargetsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The error message that explains why the target removal failed.</p>
*/
inline RemoveTargetsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_targetId;
bool m_targetIdHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,472 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/RuleState.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Contains information about a rule in Amazon EventBridge.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Rule">AWS API
* Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API Rule
{
public:
Rule();
Rule(Aws::Utils::Json::JsonView jsonValue);
Rule& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the rule.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the rule.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the rule.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the rule.</p>
*/
inline Rule& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline Rule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the rule.</p>
*/
inline Rule& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline Rule& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline Rule& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the rule.</p>
*/
inline Rule& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The event pattern of the rule. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
/**
* <p>The event pattern of the rule. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
/**
* <p>The event pattern of the rule. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
/**
* <p>The event pattern of the rule. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
/**
* <p>The event pattern of the rule. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
/**
* <p>The event pattern of the rule. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline Rule& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
/**
* <p>The event pattern of the rule. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline Rule& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
/**
* <p>The event pattern of the rule. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline Rule& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
/**
* <p>The state of the rule.</p>
*/
inline const RuleState& GetState() const{ return m_state; }
/**
* <p>The state of the rule.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the rule.</p>
*/
inline void SetState(const RuleState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the rule.</p>
*/
inline void SetState(RuleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the rule.</p>
*/
inline Rule& WithState(const RuleState& value) { SetState(value); return *this;}
/**
* <p>The state of the rule.</p>
*/
inline Rule& WithState(RuleState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The description of the rule.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the rule.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the rule.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the rule.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the rule.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the rule.</p>
*/
inline Rule& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the rule.</p>
*/
inline Rule& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the rule.</p>
*/
inline Rule& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline Rule& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline Rule& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
/**
* <p>The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5
* minutes)".</p>
*/
inline Rule& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the role that is used for target
* invocation.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the role that is used for target
* invocation.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the role that is used for target
* invocation.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the role that is used for target
* invocation.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the role that is used for target
* invocation.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the role that is used for target
* invocation.</p>
*/
inline Rule& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the role that is used for target
* invocation.</p>
*/
inline Rule& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the role that is used for target
* invocation.</p>
*/
inline Rule& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>If the rule was created on behalf of your account by an AWS service, this
* field displays the principal name of the service that created the rule.</p>
*/
inline const Aws::String& GetManagedBy() const{ return m_managedBy; }
/**
* <p>If the rule was created on behalf of your account by an AWS service, this
* field displays the principal name of the service that created the rule.</p>
*/
inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
/**
* <p>If the rule was created on behalf of your account by an AWS service, this
* field displays the principal name of the service that created the rule.</p>
*/
inline void SetManagedBy(const Aws::String& value) { m_managedByHasBeenSet = true; m_managedBy = value; }
/**
* <p>If the rule was created on behalf of your account by an AWS service, this
* field displays the principal name of the service that created the rule.</p>
*/
inline void SetManagedBy(Aws::String&& value) { m_managedByHasBeenSet = true; m_managedBy = std::move(value); }
/**
* <p>If the rule was created on behalf of your account by an AWS service, this
* field displays the principal name of the service that created the rule.</p>
*/
inline void SetManagedBy(const char* value) { m_managedByHasBeenSet = true; m_managedBy.assign(value); }
/**
* <p>If the rule was created on behalf of your account by an AWS service, this
* field displays the principal name of the service that created the rule.</p>
*/
inline Rule& WithManagedBy(const Aws::String& value) { SetManagedBy(value); return *this;}
/**
* <p>If the rule was created on behalf of your account by an AWS service, this
* field displays the principal name of the service that created the rule.</p>
*/
inline Rule& WithManagedBy(Aws::String&& value) { SetManagedBy(std::move(value)); return *this;}
/**
* <p>If the rule was created on behalf of your account by an AWS service, this
* field displays the principal name of the service that created the rule.</p>
*/
inline Rule& WithManagedBy(const char* value) { SetManagedBy(value); return *this;}
/**
* <p>The event bus associated with the rule.</p>
*/
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
/**
* <p>The event bus associated with the rule.</p>
*/
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
/**
* <p>The event bus associated with the rule.</p>
*/
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
/**
* <p>The event bus associated with the rule.</p>
*/
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
/**
* <p>The event bus associated with the rule.</p>
*/
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
/**
* <p>The event bus associated with the rule.</p>
*/
inline Rule& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
/**
* <p>The event bus associated with the rule.</p>
*/
inline Rule& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
/**
* <p>The event bus associated with the rule.</p>
*/
inline Rule& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_eventPattern;
bool m_eventPatternHasBeenSet;
RuleState m_state;
bool m_stateHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_scheduleExpression;
bool m_scheduleExpressionHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::String m_managedBy;
bool m_managedByHasBeenSet;
Aws::String m_eventBusName;
bool m_eventBusNameHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
enum class RuleState
{
NOT_SET,
ENABLED,
DISABLED
};
namespace RuleStateMapper
{
AWS_CLOUDWATCHEVENTS_API RuleState GetRuleStateForName(const Aws::String& name);
AWS_CLOUDWATCHEVENTS_API Aws::String GetNameForRuleState(RuleState value);
} // namespace RuleStateMapper
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/RunCommandTarget.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>This parameter contains the criteria (either InstanceIds or a tag) used to
* specify which EC2 instances are to be sent the command. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RunCommandParameters">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API RunCommandParameters
{
public:
RunCommandParameters();
RunCommandParameters(Aws::Utils::Json::JsonView jsonValue);
RunCommandParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Currently, we support including only one RunCommandTarget block, which
* specifies either an array of InstanceIds or a tag.</p>
*/
inline const Aws::Vector<RunCommandTarget>& GetRunCommandTargets() const{ return m_runCommandTargets; }
/**
* <p>Currently, we support including only one RunCommandTarget block, which
* specifies either an array of InstanceIds or a tag.</p>
*/
inline bool RunCommandTargetsHasBeenSet() const { return m_runCommandTargetsHasBeenSet; }
/**
* <p>Currently, we support including only one RunCommandTarget block, which
* specifies either an array of InstanceIds or a tag.</p>
*/
inline void SetRunCommandTargets(const Aws::Vector<RunCommandTarget>& value) { m_runCommandTargetsHasBeenSet = true; m_runCommandTargets = value; }
/**
* <p>Currently, we support including only one RunCommandTarget block, which
* specifies either an array of InstanceIds or a tag.</p>
*/
inline void SetRunCommandTargets(Aws::Vector<RunCommandTarget>&& value) { m_runCommandTargetsHasBeenSet = true; m_runCommandTargets = std::move(value); }
/**
* <p>Currently, we support including only one RunCommandTarget block, which
* specifies either an array of InstanceIds or a tag.</p>
*/
inline RunCommandParameters& WithRunCommandTargets(const Aws::Vector<RunCommandTarget>& value) { SetRunCommandTargets(value); return *this;}
/**
* <p>Currently, we support including only one RunCommandTarget block, which
* specifies either an array of InstanceIds or a tag.</p>
*/
inline RunCommandParameters& WithRunCommandTargets(Aws::Vector<RunCommandTarget>&& value) { SetRunCommandTargets(std::move(value)); return *this;}
/**
* <p>Currently, we support including only one RunCommandTarget block, which
* specifies either an array of InstanceIds or a tag.</p>
*/
inline RunCommandParameters& AddRunCommandTargets(const RunCommandTarget& value) { m_runCommandTargetsHasBeenSet = true; m_runCommandTargets.push_back(value); return *this; }
/**
* <p>Currently, we support including only one RunCommandTarget block, which
* specifies either an array of InstanceIds or a tag.</p>
*/
inline RunCommandParameters& AddRunCommandTargets(RunCommandTarget&& value) { m_runCommandTargetsHasBeenSet = true; m_runCommandTargets.push_back(std::move(value)); return *this; }
private:
Aws::Vector<RunCommandTarget> m_runCommandTargets;
bool m_runCommandTargetsHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,167 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Information about the EC2 instances that are to be sent the command,
* specified as key-value pairs. Each <code>RunCommandTarget</code> block can
* include only one key, but this key may specify multiple values.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RunCommandTarget">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API RunCommandTarget
{
public:
RunCommandTarget();
RunCommandTarget(Aws::Utils::Json::JsonView jsonValue);
RunCommandTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Can be either <code>tag:</code> <i>tag-key</i> or
* <code>InstanceIds</code>.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>Can be either <code>tag:</code> <i>tag-key</i> or
* <code>InstanceIds</code>.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>Can be either <code>tag:</code> <i>tag-key</i> or
* <code>InstanceIds</code>.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>Can be either <code>tag:</code> <i>tag-key</i> or
* <code>InstanceIds</code>.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>Can be either <code>tag:</code> <i>tag-key</i> or
* <code>InstanceIds</code>.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>Can be either <code>tag:</code> <i>tag-key</i> or
* <code>InstanceIds</code>.</p>
*/
inline RunCommandTarget& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>Can be either <code>tag:</code> <i>tag-key</i> or
* <code>InstanceIds</code>.</p>
*/
inline RunCommandTarget& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>Can be either <code>tag:</code> <i>tag-key</i> or
* <code>InstanceIds</code>.</p>
*/
inline RunCommandTarget& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline RunCommandTarget& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline RunCommandTarget& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline RunCommandTarget& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline RunCommandTarget& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
/**
* <p>If <code>Key</code> is <code>tag:</code> <i>tag-key</i>, <code>Values</code>
* is a list of tag values. If <code>Key</code> is <code>InstanceIds</code>,
* <code>Values</code> is a list of Amazon EC2 instance IDs.</p>
*/
inline RunCommandTarget& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>This structure includes the custom parameter to be used when the target is an
* SQS FIFO queue.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/SqsParameters">AWS
* API Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API SqsParameters
{
public:
SqsParameters();
SqsParameters(Aws::Utils::Json::JsonView jsonValue);
SqsParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The FIFO message group ID to use as the target.</p>
*/
inline const Aws::String& GetMessageGroupId() const{ return m_messageGroupId; }
/**
* <p>The FIFO message group ID to use as the target.</p>
*/
inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; }
/**
* <p>The FIFO message group ID to use as the target.</p>
*/
inline void SetMessageGroupId(const Aws::String& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = value; }
/**
* <p>The FIFO message group ID to use as the target.</p>
*/
inline void SetMessageGroupId(Aws::String&& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = std::move(value); }
/**
* <p>The FIFO message group ID to use as the target.</p>
*/
inline void SetMessageGroupId(const char* value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId.assign(value); }
/**
* <p>The FIFO message group ID to use as the target.</p>
*/
inline SqsParameters& WithMessageGroupId(const Aws::String& value) { SetMessageGroupId(value); return *this;}
/**
* <p>The FIFO message group ID to use as the target.</p>
*/
inline SqsParameters& WithMessageGroupId(Aws::String&& value) { SetMessageGroupId(std::move(value)); return *this;}
/**
* <p>The FIFO message group ID to use as the target.</p>
*/
inline SqsParameters& WithMessageGroupId(const char* value) { SetMessageGroupId(value); return *this;}
private:
Aws::String m_messageGroupId;
bool m_messageGroupIdHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>A key-value pair associated with an AWS resource. In EventBridge, rules and
* event buses support tagging.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Tag">AWS API
* Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API Tag
{
public:
Tag();
Tag(Aws::Utils::Json::JsonView jsonValue);
Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A string you can use to assign a value. The combination of tag keys and
* values can help you organize and categorize your resources.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>A string you can use to assign a value. The combination of tag keys and
* values can help you organize and categorize your resources.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>A string you can use to assign a value. The combination of tag keys and
* values can help you organize and categorize your resources.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>A string you can use to assign a value. The combination of tag keys and
* values can help you organize and categorize your resources.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>A string you can use to assign a value. The combination of tag keys and
* values can help you organize and categorize your resources.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>A string you can use to assign a value. The combination of tag keys and
* values can help you organize and categorize your resources.</p>
*/
inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>A string you can use to assign a value. The combination of tag keys and
* values can help you organize and categorize your resources.</p>
*/
inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>A string you can use to assign a value. The combination of tag keys and
* values can help you organize and categorize your resources.</p>
*/
inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>The value for the specified tag key.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value for the specified tag key.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value for the specified tag key.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value for the specified tag key.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value for the specified tag key.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value for the specified tag key.</p>
*/
inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value for the specified tag key.</p>
*/
inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value for the specified tag key.</p>
*/
inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/events/model/Tag.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API TagResourceRequest : public CloudWatchEventsRequest
{
public:
TagResourceRequest();
// 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 "TagResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ARN of the EventBridge resource that you're adding tags to.</p>
*/
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
/**
* <p>The ARN of the EventBridge resource that you're adding tags to.</p>
*/
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
/**
* <p>The ARN of the EventBridge resource that you're adding tags to.</p>
*/
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
/**
* <p>The ARN of the EventBridge resource that you're adding tags to.</p>
*/
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
/**
* <p>The ARN of the EventBridge resource that you're adding tags to.</p>
*/
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
/**
* <p>The ARN of the EventBridge resource that you're adding tags to.</p>
*/
inline TagResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
/**
* <p>The ARN of the EventBridge resource that you're adding tags to.</p>
*/
inline TagResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
/**
* <p>The ARN of the EventBridge resource that you're adding tags to.</p>
*/
inline TagResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
/**
* <p>The list of key-value pairs to associate with the resource.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The list of key-value pairs to associate with the resource.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The list of key-value pairs to associate with the resource.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The list of key-value pairs to associate with the resource.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The list of key-value pairs to associate with the resource.</p>
*/
inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The list of key-value pairs to associate with the resource.</p>
*/
inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The list of key-value pairs to associate with the resource.</p>
*/
inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The list of key-value pairs to associate with the resource.</p>
*/
inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API TagResourceResult
{
public:
TagResourceResult();
TagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
TagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,684 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/events/model/InputTransformer.h>
#include <aws/events/model/KinesisParameters.h>
#include <aws/events/model/RunCommandParameters.h>
#include <aws/events/model/EcsParameters.h>
#include <aws/events/model/BatchParameters.h>
#include <aws/events/model/SqsParameters.h>
#include <aws/events/model/HttpParameters.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
/**
* <p>Targets are the resources to be invoked when a rule is triggered. For a
* complete list of services and resources that can be set as a target, see
* <a>PutTargets</a>.</p> <p>If you are setting the event bus of another account as
* the target, and that account granted permission to your account through an
* organization instead of directly by the account ID, then you must specify a
* <code>RoleArn</code> with proper permissions in the <code>Target</code>
* structure. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-cross-account-event-delivery.html">Sending
* and Receiving Events Between AWS Accounts</a> in the <i>Amazon EventBridge User
* Guide</i>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/Target">AWS API
* Reference</a></p>
*/
class AWS_CLOUDWATCHEVENTS_API Target
{
public:
Target();
Target(Aws::Utils::Json::JsonView jsonValue);
Target& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the target.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the target.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the target.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the target.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the target.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the target.</p>
*/
inline Target& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the target.</p>
*/
inline Target& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the target.</p>
*/
inline Target& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the target.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The Amazon Resource Name (ARN) of the target.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the target.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the target.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the target.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the target.</p>
*/
inline Target& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the target.</p>
*/
inline Target& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the target.</p>
*/
inline Target& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role to be used for this target
* when the rule is triggered. If one rule triggers multiple targets, you can use a
* different IAM role for each target.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role to be used for this target
* when the rule is triggered. If one rule triggers multiple targets, you can use a
* different IAM role for each target.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role to be used for this target
* when the rule is triggered. If one rule triggers multiple targets, you can use a
* different IAM role for each target.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role to be used for this target
* when the rule is triggered. If one rule triggers multiple targets, you can use a
* different IAM role for each target.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role to be used for this target
* when the rule is triggered. If one rule triggers multiple targets, you can use a
* different IAM role for each target.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role to be used for this target
* when the rule is triggered. If one rule triggers multiple targets, you can use a
* different IAM role for each target.</p>
*/
inline Target& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role to be used for this target
* when the rule is triggered. If one rule triggers multiple targets, you can use a
* different IAM role for each target.</p>
*/
inline Target& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role to be used for this target
* when the rule is triggered. If one rule triggers multiple targets, you can use a
* different IAM role for each target.</p>
*/
inline Target& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>Valid JSON text passed to the target. In this case, nothing from the event
* itself is passed to the target. For more information, see <a
* href="http://www.rfc-editor.org/rfc/rfc7159.txt">The JavaScript Object Notation
* (JSON) Data Interchange Format</a>.</p>
*/
inline const Aws::String& GetInput() const{ return m_input; }
/**
* <p>Valid JSON text passed to the target. In this case, nothing from the event
* itself is passed to the target. For more information, see <a
* href="http://www.rfc-editor.org/rfc/rfc7159.txt">The JavaScript Object Notation
* (JSON) Data Interchange Format</a>.</p>
*/
inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
/**
* <p>Valid JSON text passed to the target. In this case, nothing from the event
* itself is passed to the target. For more information, see <a
* href="http://www.rfc-editor.org/rfc/rfc7159.txt">The JavaScript Object Notation
* (JSON) Data Interchange Format</a>.</p>
*/
inline void SetInput(const Aws::String& value) { m_inputHasBeenSet = true; m_input = value; }
/**
* <p>Valid JSON text passed to the target. In this case, nothing from the event
* itself is passed to the target. For more information, see <a
* href="http://www.rfc-editor.org/rfc/rfc7159.txt">The JavaScript Object Notation
* (JSON) Data Interchange Format</a>.</p>
*/
inline void SetInput(Aws::String&& value) { m_inputHasBeenSet = true; m_input = std::move(value); }
/**
* <p>Valid JSON text passed to the target. In this case, nothing from the event
* itself is passed to the target. For more information, see <a
* href="http://www.rfc-editor.org/rfc/rfc7159.txt">The JavaScript Object Notation
* (JSON) Data Interchange Format</a>.</p>
*/
inline void SetInput(const char* value) { m_inputHasBeenSet = true; m_input.assign(value); }
/**
* <p>Valid JSON text passed to the target. In this case, nothing from the event
* itself is passed to the target. For more information, see <a
* href="http://www.rfc-editor.org/rfc/rfc7159.txt">The JavaScript Object Notation
* (JSON) Data Interchange Format</a>.</p>
*/
inline Target& WithInput(const Aws::String& value) { SetInput(value); return *this;}
/**
* <p>Valid JSON text passed to the target. In this case, nothing from the event
* itself is passed to the target. For more information, see <a
* href="http://www.rfc-editor.org/rfc/rfc7159.txt">The JavaScript Object Notation
* (JSON) Data Interchange Format</a>.</p>
*/
inline Target& WithInput(Aws::String&& value) { SetInput(std::move(value)); return *this;}
/**
* <p>Valid JSON text passed to the target. In this case, nothing from the event
* itself is passed to the target. For more information, see <a
* href="http://www.rfc-editor.org/rfc/rfc7159.txt">The JavaScript Object Notation
* (JSON) Data Interchange Format</a>.</p>
*/
inline Target& WithInput(const char* value) { SetInput(value); return *this;}
/**
* <p>The value of the JSONPath that is used for extracting part of the matched
* event when passing it to the target. You must use JSON dot notation, not bracket
* notation. For more information about JSON paths, see <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a>.</p>
*/
inline const Aws::String& GetInputPath() const{ return m_inputPath; }
/**
* <p>The value of the JSONPath that is used for extracting part of the matched
* event when passing it to the target. You must use JSON dot notation, not bracket
* notation. For more information about JSON paths, see <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a>.</p>
*/
inline bool InputPathHasBeenSet() const { return m_inputPathHasBeenSet; }
/**
* <p>The value of the JSONPath that is used for extracting part of the matched
* event when passing it to the target. You must use JSON dot notation, not bracket
* notation. For more information about JSON paths, see <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a>.</p>
*/
inline void SetInputPath(const Aws::String& value) { m_inputPathHasBeenSet = true; m_inputPath = value; }
/**
* <p>The value of the JSONPath that is used for extracting part of the matched
* event when passing it to the target. You must use JSON dot notation, not bracket
* notation. For more information about JSON paths, see <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a>.</p>
*/
inline void SetInputPath(Aws::String&& value) { m_inputPathHasBeenSet = true; m_inputPath = std::move(value); }
/**
* <p>The value of the JSONPath that is used for extracting part of the matched
* event when passing it to the target. You must use JSON dot notation, not bracket
* notation. For more information about JSON paths, see <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a>.</p>
*/
inline void SetInputPath(const char* value) { m_inputPathHasBeenSet = true; m_inputPath.assign(value); }
/**
* <p>The value of the JSONPath that is used for extracting part of the matched
* event when passing it to the target. You must use JSON dot notation, not bracket
* notation. For more information about JSON paths, see <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a>.</p>
*/
inline Target& WithInputPath(const Aws::String& value) { SetInputPath(value); return *this;}
/**
* <p>The value of the JSONPath that is used for extracting part of the matched
* event when passing it to the target. You must use JSON dot notation, not bracket
* notation. For more information about JSON paths, see <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a>.</p>
*/
inline Target& WithInputPath(Aws::String&& value) { SetInputPath(std::move(value)); return *this;}
/**
* <p>The value of the JSONPath that is used for extracting part of the matched
* event when passing it to the target. You must use JSON dot notation, not bracket
* notation. For more information about JSON paths, see <a
* href="http://goessner.net/articles/JsonPath/">JSONPath</a>.</p>
*/
inline Target& WithInputPath(const char* value) { SetInputPath(value); return *this;}
/**
* <p>Settings to enable you to provide custom input to a target based on certain
* event data. You can extract one or more key-value pairs from the event and then
* use that data to send customized input to the target.</p>
*/
inline const InputTransformer& GetInputTransformer() const{ return m_inputTransformer; }
/**
* <p>Settings to enable you to provide custom input to a target based on certain
* event data. You can extract one or more key-value pairs from the event and then
* use that data to send customized input to the target.</p>
*/
inline bool InputTransformerHasBeenSet() const { return m_inputTransformerHasBeenSet; }
/**
* <p>Settings to enable you to provide custom input to a target based on certain
* event data. You can extract one or more key-value pairs from the event and then
* use that data to send customized input to the target.</p>
*/
inline void SetInputTransformer(const InputTransformer& value) { m_inputTransformerHasBeenSet = true; m_inputTransformer = value; }
/**
* <p>Settings to enable you to provide custom input to a target based on certain
* event data. You can extract one or more key-value pairs from the event and then
* use that data to send customized input to the target.</p>
*/
inline void SetInputTransformer(InputTransformer&& value) { m_inputTransformerHasBeenSet = true; m_inputTransformer = std::move(value); }
/**
* <p>Settings to enable you to provide custom input to a target based on certain
* event data. You can extract one or more key-value pairs from the event and then
* use that data to send customized input to the target.</p>
*/
inline Target& WithInputTransformer(const InputTransformer& value) { SetInputTransformer(value); return *this;}
/**
* <p>Settings to enable you to provide custom input to a target based on certain
* event data. You can extract one or more key-value pairs from the event and then
* use that data to send customized input to the target.</p>
*/
inline Target& WithInputTransformer(InputTransformer&& value) { SetInputTransformer(std::move(value)); return *this;}
/**
* <p>The custom parameter you can use to control the shard assignment, when the
* target is a Kinesis data stream. If you do not include this parameter, the
* default is to use the <code>eventId</code> as the partition key.</p>
*/
inline const KinesisParameters& GetKinesisParameters() const{ return m_kinesisParameters; }
/**
* <p>The custom parameter you can use to control the shard assignment, when the
* target is a Kinesis data stream. If you do not include this parameter, the
* default is to use the <code>eventId</code> as the partition key.</p>
*/
inline bool KinesisParametersHasBeenSet() const { return m_kinesisParametersHasBeenSet; }
/**
* <p>The custom parameter you can use to control the shard assignment, when the
* target is a Kinesis data stream. If you do not include this parameter, the
* default is to use the <code>eventId</code> as the partition key.</p>
*/
inline void SetKinesisParameters(const KinesisParameters& value) { m_kinesisParametersHasBeenSet = true; m_kinesisParameters = value; }
/**
* <p>The custom parameter you can use to control the shard assignment, when the
* target is a Kinesis data stream. If you do not include this parameter, the
* default is to use the <code>eventId</code> as the partition key.</p>
*/
inline void SetKinesisParameters(KinesisParameters&& value) { m_kinesisParametersHasBeenSet = true; m_kinesisParameters = std::move(value); }
/**
* <p>The custom parameter you can use to control the shard assignment, when the
* target is a Kinesis data stream. If you do not include this parameter, the
* default is to use the <code>eventId</code> as the partition key.</p>
*/
inline Target& WithKinesisParameters(const KinesisParameters& value) { SetKinesisParameters(value); return *this;}
/**
* <p>The custom parameter you can use to control the shard assignment, when the
* target is a Kinesis data stream. If you do not include this parameter, the
* default is to use the <code>eventId</code> as the partition key.</p>
*/
inline Target& WithKinesisParameters(KinesisParameters&& value) { SetKinesisParameters(std::move(value)); return *this;}
/**
* <p>Parameters used when you are using the rule to invoke Amazon EC2 Run
* Command.</p>
*/
inline const RunCommandParameters& GetRunCommandParameters() const{ return m_runCommandParameters; }
/**
* <p>Parameters used when you are using the rule to invoke Amazon EC2 Run
* Command.</p>
*/
inline bool RunCommandParametersHasBeenSet() const { return m_runCommandParametersHasBeenSet; }
/**
* <p>Parameters used when you are using the rule to invoke Amazon EC2 Run
* Command.</p>
*/
inline void SetRunCommandParameters(const RunCommandParameters& value) { m_runCommandParametersHasBeenSet = true; m_runCommandParameters = value; }
/**
* <p>Parameters used when you are using the rule to invoke Amazon EC2 Run
* Command.</p>
*/
inline void SetRunCommandParameters(RunCommandParameters&& value) { m_runCommandParametersHasBeenSet = true; m_runCommandParameters = std::move(value); }
/**
* <p>Parameters used when you are using the rule to invoke Amazon EC2 Run
* Command.</p>
*/
inline Target& WithRunCommandParameters(const RunCommandParameters& value) { SetRunCommandParameters(value); return *this;}
/**
* <p>Parameters used when you are using the rule to invoke Amazon EC2 Run
* Command.</p>
*/
inline Target& WithRunCommandParameters(RunCommandParameters&& value) { SetRunCommandParameters(std::move(value)); return *this;}
/**
* <p>Contains the Amazon ECS task definition and task count to be used, if the
* event target is an Amazon ECS task. For more information about Amazon ECS tasks,
* see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task
* Definitions </a> in the <i>Amazon EC2 Container Service Developer Guide</i>.</p>
*/
inline const EcsParameters& GetEcsParameters() const{ return m_ecsParameters; }
/**
* <p>Contains the Amazon ECS task definition and task count to be used, if the
* event target is an Amazon ECS task. For more information about Amazon ECS tasks,
* see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task
* Definitions </a> in the <i>Amazon EC2 Container Service Developer Guide</i>.</p>
*/
inline bool EcsParametersHasBeenSet() const { return m_ecsParametersHasBeenSet; }
/**
* <p>Contains the Amazon ECS task definition and task count to be used, if the
* event target is an Amazon ECS task. For more information about Amazon ECS tasks,
* see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task
* Definitions </a> in the <i>Amazon EC2 Container Service Developer Guide</i>.</p>
*/
inline void SetEcsParameters(const EcsParameters& value) { m_ecsParametersHasBeenSet = true; m_ecsParameters = value; }
/**
* <p>Contains the Amazon ECS task definition and task count to be used, if the
* event target is an Amazon ECS task. For more information about Amazon ECS tasks,
* see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task
* Definitions </a> in the <i>Amazon EC2 Container Service Developer Guide</i>.</p>
*/
inline void SetEcsParameters(EcsParameters&& value) { m_ecsParametersHasBeenSet = true; m_ecsParameters = std::move(value); }
/**
* <p>Contains the Amazon ECS task definition and task count to be used, if the
* event target is an Amazon ECS task. For more information about Amazon ECS tasks,
* see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task
* Definitions </a> in the <i>Amazon EC2 Container Service Developer Guide</i>.</p>
*/
inline Target& WithEcsParameters(const EcsParameters& value) { SetEcsParameters(value); return *this;}
/**
* <p>Contains the Amazon ECS task definition and task count to be used, if the
* event target is an Amazon ECS task. For more information about Amazon ECS tasks,
* see <a
* href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html">Task
* Definitions </a> in the <i>Amazon EC2 Container Service Developer Guide</i>.</p>
*/
inline Target& WithEcsParameters(EcsParameters&& value) { SetEcsParameters(std::move(value)); return *this;}
/**
* <p>If the event target is an AWS Batch job, this contains the job definition,
* job name, and other parameters. For more information, see <a
* href="https://docs.aws.amazon.com/batch/latest/userguide/jobs.html">Jobs</a> in
* the <i>AWS Batch User Guide</i>.</p>
*/
inline const BatchParameters& GetBatchParameters() const{ return m_batchParameters; }
/**
* <p>If the event target is an AWS Batch job, this contains the job definition,
* job name, and other parameters. For more information, see <a
* href="https://docs.aws.amazon.com/batch/latest/userguide/jobs.html">Jobs</a> in
* the <i>AWS Batch User Guide</i>.</p>
*/
inline bool BatchParametersHasBeenSet() const { return m_batchParametersHasBeenSet; }
/**
* <p>If the event target is an AWS Batch job, this contains the job definition,
* job name, and other parameters. For more information, see <a
* href="https://docs.aws.amazon.com/batch/latest/userguide/jobs.html">Jobs</a> in
* the <i>AWS Batch User Guide</i>.</p>
*/
inline void SetBatchParameters(const BatchParameters& value) { m_batchParametersHasBeenSet = true; m_batchParameters = value; }
/**
* <p>If the event target is an AWS Batch job, this contains the job definition,
* job name, and other parameters. For more information, see <a
* href="https://docs.aws.amazon.com/batch/latest/userguide/jobs.html">Jobs</a> in
* the <i>AWS Batch User Guide</i>.</p>
*/
inline void SetBatchParameters(BatchParameters&& value) { m_batchParametersHasBeenSet = true; m_batchParameters = std::move(value); }
/**
* <p>If the event target is an AWS Batch job, this contains the job definition,
* job name, and other parameters. For more information, see <a
* href="https://docs.aws.amazon.com/batch/latest/userguide/jobs.html">Jobs</a> in
* the <i>AWS Batch User Guide</i>.</p>
*/
inline Target& WithBatchParameters(const BatchParameters& value) { SetBatchParameters(value); return *this;}
/**
* <p>If the event target is an AWS Batch job, this contains the job definition,
* job name, and other parameters. For more information, see <a
* href="https://docs.aws.amazon.com/batch/latest/userguide/jobs.html">Jobs</a> in
* the <i>AWS Batch User Guide</i>.</p>
*/
inline Target& WithBatchParameters(BatchParameters&& value) { SetBatchParameters(std::move(value)); return *this;}
/**
* <p>Contains the message group ID to use when the target is a FIFO queue.</p>
* <p>If you specify an SQS FIFO queue as a target, the queue must have
* content-based deduplication enabled.</p>
*/
inline const SqsParameters& GetSqsParameters() const{ return m_sqsParameters; }
/**
* <p>Contains the message group ID to use when the target is a FIFO queue.</p>
* <p>If you specify an SQS FIFO queue as a target, the queue must have
* content-based deduplication enabled.</p>
*/
inline bool SqsParametersHasBeenSet() const { return m_sqsParametersHasBeenSet; }
/**
* <p>Contains the message group ID to use when the target is a FIFO queue.</p>
* <p>If you specify an SQS FIFO queue as a target, the queue must have
* content-based deduplication enabled.</p>
*/
inline void SetSqsParameters(const SqsParameters& value) { m_sqsParametersHasBeenSet = true; m_sqsParameters = value; }
/**
* <p>Contains the message group ID to use when the target is a FIFO queue.</p>
* <p>If you specify an SQS FIFO queue as a target, the queue must have
* content-based deduplication enabled.</p>
*/
inline void SetSqsParameters(SqsParameters&& value) { m_sqsParametersHasBeenSet = true; m_sqsParameters = std::move(value); }
/**
* <p>Contains the message group ID to use when the target is a FIFO queue.</p>
* <p>If you specify an SQS FIFO queue as a target, the queue must have
* content-based deduplication enabled.</p>
*/
inline Target& WithSqsParameters(const SqsParameters& value) { SetSqsParameters(value); return *this;}
/**
* <p>Contains the message group ID to use when the target is a FIFO queue.</p>
* <p>If you specify an SQS FIFO queue as a target, the queue must have
* content-based deduplication enabled.</p>
*/
inline Target& WithSqsParameters(SqsParameters&& value) { SetSqsParameters(std::move(value)); return *this;}
/**
* <p>Contains the HTTP parameters to use when the target is a API Gateway REST
* endpoint.</p> <p>If you specify an API Gateway REST API as a target, you can use
* this parameter to specify headers, path parameter, query string keys/values as
* part of your target invoking request.</p>
*/
inline const HttpParameters& GetHttpParameters() const{ return m_httpParameters; }
/**
* <p>Contains the HTTP parameters to use when the target is a API Gateway REST
* endpoint.</p> <p>If you specify an API Gateway REST API as a target, you can use
* this parameter to specify headers, path parameter, query string keys/values as
* part of your target invoking request.</p>
*/
inline bool HttpParametersHasBeenSet() const { return m_httpParametersHasBeenSet; }
/**
* <p>Contains the HTTP parameters to use when the target is a API Gateway REST
* endpoint.</p> <p>If you specify an API Gateway REST API as a target, you can use
* this parameter to specify headers, path parameter, query string keys/values as
* part of your target invoking request.</p>
*/
inline void SetHttpParameters(const HttpParameters& value) { m_httpParametersHasBeenSet = true; m_httpParameters = value; }
/**
* <p>Contains the HTTP parameters to use when the target is a API Gateway REST
* endpoint.</p> <p>If you specify an API Gateway REST API as a target, you can use
* this parameter to specify headers, path parameter, query string keys/values as
* part of your target invoking request.</p>
*/
inline void SetHttpParameters(HttpParameters&& value) { m_httpParametersHasBeenSet = true; m_httpParameters = std::move(value); }
/**
* <p>Contains the HTTP parameters to use when the target is a API Gateway REST
* endpoint.</p> <p>If you specify an API Gateway REST API as a target, you can use
* this parameter to specify headers, path parameter, query string keys/values as
* part of your target invoking request.</p>
*/
inline Target& WithHttpParameters(const HttpParameters& value) { SetHttpParameters(value); return *this;}
/**
* <p>Contains the HTTP parameters to use when the target is a API Gateway REST
* endpoint.</p> <p>If you specify an API Gateway REST API as a target, you can use
* this parameter to specify headers, path parameter, query string keys/values as
* part of your target invoking request.</p>
*/
inline Target& WithHttpParameters(HttpParameters&& value) { SetHttpParameters(std::move(value)); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::String m_input;
bool m_inputHasBeenSet;
Aws::String m_inputPath;
bool m_inputPathHasBeenSet;
InputTransformer m_inputTransformer;
bool m_inputTransformerHasBeenSet;
KinesisParameters m_kinesisParameters;
bool m_kinesisParametersHasBeenSet;
RunCommandParameters m_runCommandParameters;
bool m_runCommandParametersHasBeenSet;
EcsParameters m_ecsParameters;
bool m_ecsParametersHasBeenSet;
BatchParameters m_batchParameters;
bool m_batchParametersHasBeenSet;
SqsParameters m_sqsParameters;
bool m_sqsParametersHasBeenSet;
HttpParameters m_httpParameters;
bool m_httpParametersHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API TestEventPatternRequest : public CloudWatchEventsRequest
{
public:
TestEventPatternRequest();
// 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 "TestEventPattern"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline TestEventPatternRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline TestEventPatternRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline TestEventPatternRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline const Aws::String& GetEvent() const{ return m_event; }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline void SetEvent(const Aws::String& value) { m_eventHasBeenSet = true; m_event = value; }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline void SetEvent(Aws::String&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline void SetEvent(const char* value) { m_eventHasBeenSet = true; m_event.assign(value); }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline TestEventPatternRequest& WithEvent(const Aws::String& value) { SetEvent(value); return *this;}
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline TestEventPatternRequest& WithEvent(Aws::String&& value) { SetEvent(std::move(value)); return *this;}
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline TestEventPatternRequest& WithEvent(const char* value) { SetEvent(value); return *this;}
private:
Aws::String m_eventPattern;
bool m_eventPatternHasBeenSet;
Aws::String m_event;
bool m_eventHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,55 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API TestEventPatternResult
{
public:
TestEventPatternResult();
TestEventPatternResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
TestEventPatternResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Indicates whether the event matches the event pattern.</p>
*/
inline bool GetResult() const{ return m_result; }
/**
* <p>Indicates whether the event matches the event pattern.</p>
*/
inline void SetResult(bool value) { m_result = value; }
/**
* <p>Indicates whether the event matches the event pattern.</p>
*/
inline TestEventPatternResult& WithResult(bool value) { SetResult(value); return *this;}
private:
bool m_result;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API UntagResourceRequest : public CloudWatchEventsRequest
{
public:
UntagResourceRequest();
// 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 "UntagResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ARN of the EventBridge resource from which you are removing tags.</p>
*/
inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
/**
* <p>The ARN of the EventBridge resource from which you are removing tags.</p>
*/
inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
/**
* <p>The ARN of the EventBridge resource from which you are removing tags.</p>
*/
inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
/**
* <p>The ARN of the EventBridge resource from which you are removing tags.</p>
*/
inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
/**
* <p>The ARN of the EventBridge resource from which you are removing tags.</p>
*/
inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
/**
* <p>The ARN of the EventBridge resource from which you are removing tags.</p>
*/
inline UntagResourceRequest& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
/**
* <p>The ARN of the EventBridge resource from which you are removing tags.</p>
*/
inline UntagResourceRequest& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
/**
* <p>The ARN of the EventBridge resource from which you are removing tags.</p>
*/
inline UntagResourceRequest& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* <p>The list of tag keys to remove from the resource.</p>
*/
inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_resourceARN;
bool m_resourceARNHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{
class AWS_CLOUDWATCHEVENTS_API UntagResourceResult
{
public:
UntagResourceResult();
UntagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UntagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws