diff --git a/VERSION b/VERSION index b9f074d3abb..543c1bdeb3a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.332 \ No newline at end of file +1.11.333 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/CreateJobRequest.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/CreateJobRequest.h index 6a81e745cbd..35cabe19aee 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/CreateJobRequest.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/CreateJobRequest.h @@ -1544,6 +1544,87 @@ namespace Model */ inline CreateJobRequest& WithSourceControlDetails(SourceControlDetails&& value) { SetSourceControlDetails(std::move(value)); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline const Aws::String& GetMaintenanceWindow() const{ return m_maintenanceWindow; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(const Aws::String& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = value; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(Aws::String&& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = std::move(value); } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(const char* value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow.assign(value); } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline CreateJobRequest& WithMaintenanceWindow(const Aws::String& value) { SetMaintenanceWindow(value); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline CreateJobRequest& WithMaintenanceWindow(Aws::String&& value) { SetMaintenanceWindow(std::move(value)); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline CreateJobRequest& WithMaintenanceWindow(const char* value) { SetMaintenanceWindow(value); return *this;} + private: Aws::String m_name; @@ -1608,6 +1689,9 @@ namespace Model SourceControlDetails m_sourceControlDetails; bool m_sourceControlDetailsHasBeenSet = false; + + Aws::String m_maintenanceWindow; + bool m_maintenanceWindowHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/Job.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/Job.h index 7c52906972c..1446c61ae32 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/Job.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/Job.h @@ -1497,6 +1497,87 @@ namespace Model */ inline Job& WithSourceControlDetails(SourceControlDetails&& value) { SetSourceControlDetails(std::move(value)); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline const Aws::String& GetMaintenanceWindow() const{ return m_maintenanceWindow; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(const Aws::String& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = value; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(Aws::String&& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = std::move(value); } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(const char* value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow.assign(value); } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline Job& WithMaintenanceWindow(const Aws::String& value) { SetMaintenanceWindow(value); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline Job& WithMaintenanceWindow(Aws::String&& value) { SetMaintenanceWindow(std::move(value)); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline Job& WithMaintenanceWindow(const char* value) { SetMaintenanceWindow(value); return *this;} + private: Aws::String m_name; @@ -1564,6 +1645,9 @@ namespace Model SourceControlDetails m_sourceControlDetails; bool m_sourceControlDetailsHasBeenSet = false; + + Aws::String m_maintenanceWindow; + bool m_maintenanceWindowHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobRun.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobRun.h index ad4b89313fa..8281d512dad 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobRun.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobRun.h @@ -774,8 +774,15 @@ namespace Model *

The JobRun timeout in minutes. This is the maximum time that a * job run can consume resources before it is terminated and enters * TIMEOUT status. This value overrides the timeout value set in the - * parent job.

Streaming jobs do not have a timeout. The default for - * non-streaming jobs is 2,880 minutes (48 hours).

+ * parent job.

The maximum value for timeout for batch jobs is 7 days or + * 10080 minutes. The default is 2880 minutes (48 hours) for batch jobs.

Any + * existing Glue jobs that have a greater timeout value are defaulted to 7 days. + * For instance you have specified a timeout of 20 days for a batch job, it will be + * stopped on the 7th day.

Streaming jobs must have timeout values less than + * 7 days or 10080 minutes. When the value is left blank, the job will be restarted + * after 7 days based if you have not setup a maintenance window. If you have setup + * maintenance window, it will be restarted during the maintenance window after 7 + * days.

*/ inline int GetTimeout() const{ return m_timeout; } @@ -783,8 +790,15 @@ namespace Model *

The JobRun timeout in minutes. This is the maximum time that a * job run can consume resources before it is terminated and enters * TIMEOUT status. This value overrides the timeout value set in the - * parent job.

Streaming jobs do not have a timeout. The default for - * non-streaming jobs is 2,880 minutes (48 hours).

+ * parent job.

The maximum value for timeout for batch jobs is 7 days or + * 10080 minutes. The default is 2880 minutes (48 hours) for batch jobs.

Any + * existing Glue jobs that have a greater timeout value are defaulted to 7 days. + * For instance you have specified a timeout of 20 days for a batch job, it will be + * stopped on the 7th day.

Streaming jobs must have timeout values less than + * 7 days or 10080 minutes. When the value is left blank, the job will be restarted + * after 7 days based if you have not setup a maintenance window. If you have setup + * maintenance window, it will be restarted during the maintenance window after 7 + * days.

*/ inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; } @@ -792,8 +806,15 @@ namespace Model *

The JobRun timeout in minutes. This is the maximum time that a * job run can consume resources before it is terminated and enters * TIMEOUT status. This value overrides the timeout value set in the - * parent job.

Streaming jobs do not have a timeout. The default for - * non-streaming jobs is 2,880 minutes (48 hours).

+ * parent job.

The maximum value for timeout for batch jobs is 7 days or + * 10080 minutes. The default is 2880 minutes (48 hours) for batch jobs.

Any + * existing Glue jobs that have a greater timeout value are defaulted to 7 days. + * For instance you have specified a timeout of 20 days for a batch job, it will be + * stopped on the 7th day.

Streaming jobs must have timeout values less than + * 7 days or 10080 minutes. When the value is left blank, the job will be restarted + * after 7 days based if you have not setup a maintenance window. If you have setup + * maintenance window, it will be restarted during the maintenance window after 7 + * days.

*/ inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; } @@ -801,8 +822,15 @@ namespace Model *

The JobRun timeout in minutes. This is the maximum time that a * job run can consume resources before it is terminated and enters * TIMEOUT status. This value overrides the timeout value set in the - * parent job.

Streaming jobs do not have a timeout. The default for - * non-streaming jobs is 2,880 minutes (48 hours).

+ * parent job.

The maximum value for timeout for batch jobs is 7 days or + * 10080 minutes. The default is 2880 minutes (48 hours) for batch jobs.

Any + * existing Glue jobs that have a greater timeout value are defaulted to 7 days. + * For instance you have specified a timeout of 20 days for a batch job, it will be + * stopped on the 7th day.

Streaming jobs must have timeout values less than + * 7 days or 10080 minutes. When the value is left blank, the job will be restarted + * after 7 days based if you have not setup a maintenance window. If you have setup + * maintenance window, it will be restarted during the maintenance window after 7 + * days.

*/ inline JobRun& WithTimeout(int value) { SetTimeout(value); return *this;} @@ -1435,9 +1463,10 @@ namespace Model /** - *

This field populates only for Auto Scaling job runs, and represents the total - * time each executor ran during the lifecycle of a job run in seconds, multiplied - * by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for + *

This field can be set for either job runs with execution class + * FLEX or when Auto Scaling is enabled, and represents the total time + * each executor ran during the lifecycle of a job run in seconds, multiplied by a + * DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for * G.025X workers). This value may be different than the * executionEngineRuntime * MaxCapacity as in the case of * Auto Scaling jobs, as the number of executors running at a given time may be @@ -1448,9 +1477,10 @@ namespace Model inline double GetDPUSeconds() const{ return m_dPUSeconds; } /** - *

This field populates only for Auto Scaling job runs, and represents the total - * time each executor ran during the lifecycle of a job run in seconds, multiplied - * by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for + *

This field can be set for either job runs with execution class + * FLEX or when Auto Scaling is enabled, and represents the total time + * each executor ran during the lifecycle of a job run in seconds, multiplied by a + * DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for * G.025X workers). This value may be different than the * executionEngineRuntime * MaxCapacity as in the case of * Auto Scaling jobs, as the number of executors running at a given time may be @@ -1461,9 +1491,10 @@ namespace Model inline bool DPUSecondsHasBeenSet() const { return m_dPUSecondsHasBeenSet; } /** - *

This field populates only for Auto Scaling job runs, and represents the total - * time each executor ran during the lifecycle of a job run in seconds, multiplied - * by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for + *

This field can be set for either job runs with execution class + * FLEX or when Auto Scaling is enabled, and represents the total time + * each executor ran during the lifecycle of a job run in seconds, multiplied by a + * DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for * G.025X workers). This value may be different than the * executionEngineRuntime * MaxCapacity as in the case of * Auto Scaling jobs, as the number of executors running at a given time may be @@ -1474,9 +1505,10 @@ namespace Model inline void SetDPUSeconds(double value) { m_dPUSecondsHasBeenSet = true; m_dPUSeconds = value; } /** - *

This field populates only for Auto Scaling job runs, and represents the total - * time each executor ran during the lifecycle of a job run in seconds, multiplied - * by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for + *

This field can be set for either job runs with execution class + * FLEX or when Auto Scaling is enabled, and represents the total time + * each executor ran during the lifecycle of a job run in seconds, multiplied by a + * DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for * G.025X workers). This value may be different than the * executionEngineRuntime * MaxCapacity as in the case of * Auto Scaling jobs, as the number of executors running at a given time may be @@ -1553,6 +1585,87 @@ namespace Model */ inline JobRun& WithExecutionClass(ExecutionClass&& value) { SetExecutionClass(std::move(value)); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline const Aws::String& GetMaintenanceWindow() const{ return m_maintenanceWindow; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(const Aws::String& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = value; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(Aws::String&& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = std::move(value); } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(const char* value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow.assign(value); } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline JobRun& WithMaintenanceWindow(const Aws::String& value) { SetMaintenanceWindow(value); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline JobRun& WithMaintenanceWindow(Aws::String&& value) { SetMaintenanceWindow(std::move(value)); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline JobRun& WithMaintenanceWindow(const char* value) { SetMaintenanceWindow(value); return *this;} + private: Aws::String m_id; @@ -1623,6 +1736,9 @@ namespace Model ExecutionClass m_executionClass; bool m_executionClassHasBeenSet = false; + + Aws::String m_maintenanceWindow; + bool m_maintenanceWindowHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobRunState.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobRunState.h index 4021a1af467..536b25ad26a 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobRunState.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobRunState.h @@ -24,7 +24,8 @@ namespace Model FAILED, TIMEOUT, ERROR_, - WAITING + WAITING, + EXPIRED }; namespace JobRunStateMapper diff --git a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobUpdate.h b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobUpdate.h index ce37ce8ffc9..4853b507a70 100644 --- a/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobUpdate.h +++ b/generated/src/aws-cpp-sdk-glue/include/aws/glue/model/JobUpdate.h @@ -1395,6 +1395,87 @@ namespace Model */ inline JobUpdate& WithSourceControlDetails(SourceControlDetails&& value) { SetSourceControlDetails(std::move(value)); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline const Aws::String& GetMaintenanceWindow() const{ return m_maintenanceWindow; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(const Aws::String& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = value; } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(Aws::String&& value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow = std::move(value); } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline void SetMaintenanceWindow(const char* value) { m_maintenanceWindowHasBeenSet = true; m_maintenanceWindow.assign(value); } + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline JobUpdate& WithMaintenanceWindow(const Aws::String& value) { SetMaintenanceWindow(value); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline JobUpdate& WithMaintenanceWindow(Aws::String&& value) { SetMaintenanceWindow(std::move(value)); return *this;} + + /** + *

This field specifies a day of the week and hour for a maintenance window for + * streaming jobs. Glue periodically performs maintenance activities. During these + * maintenance windows, Glue will need to restart your streaming jobs.

Glue + * will restart the job within 3 hours of the specified maintenance window. For + * instance, if you set up the maintenance window for Monday at 10:00AM GMT, your + * jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

+ */ + inline JobUpdate& WithMaintenanceWindow(const char* value) { SetMaintenanceWindow(value); return *this;} + private: Aws::String m_description; @@ -1453,6 +1534,9 @@ namespace Model SourceControlDetails m_sourceControlDetails; bool m_sourceControlDetailsHasBeenSet = false; + + Aws::String m_maintenanceWindow; + bool m_maintenanceWindowHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-glue/source/model/CreateJobRequest.cpp b/generated/src/aws-cpp-sdk-glue/source/model/CreateJobRequest.cpp index 4f0255c9ff0..7d74c3f879e 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/CreateJobRequest.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/CreateJobRequest.cpp @@ -39,7 +39,8 @@ CreateJobRequest::CreateJobRequest() : m_codeGenConfigurationNodesHasBeenSet(false), m_executionClass(ExecutionClass::NOT_SET), m_executionClassHasBeenSet(false), - m_sourceControlDetailsHasBeenSet(false) + m_sourceControlDetailsHasBeenSet(false), + m_maintenanceWindowHasBeenSet(false) { } @@ -191,6 +192,12 @@ Aws::String CreateJobRequest::SerializePayload() const } + if(m_maintenanceWindowHasBeenSet) + { + payload.WithString("MaintenanceWindow", m_maintenanceWindow); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-glue/source/model/Job.cpp b/generated/src/aws-cpp-sdk-glue/source/model/Job.cpp index ab0fca26aa8..40a100c83f2 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/Job.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/Job.cpp @@ -46,7 +46,8 @@ Job::Job() : m_codeGenConfigurationNodesHasBeenSet(false), m_executionClass(ExecutionClass::NOT_SET), m_executionClassHasBeenSet(false), - m_sourceControlDetailsHasBeenSet(false) + m_sourceControlDetailsHasBeenSet(false), + m_maintenanceWindowHasBeenSet(false) { } @@ -78,7 +79,8 @@ Job::Job(JsonView jsonValue) : m_codeGenConfigurationNodesHasBeenSet(false), m_executionClass(ExecutionClass::NOT_SET), m_executionClassHasBeenSet(false), - m_sourceControlDetailsHasBeenSet(false) + m_sourceControlDetailsHasBeenSet(false), + m_maintenanceWindowHasBeenSet(false) { *this = jsonValue; } @@ -248,6 +250,13 @@ Job& Job::operator =(JsonView jsonValue) m_sourceControlDetailsHasBeenSet = true; } + if(jsonValue.ValueExists("MaintenanceWindow")) + { + m_maintenanceWindow = jsonValue.GetString("MaintenanceWindow"); + + m_maintenanceWindowHasBeenSet = true; + } + return *this; } @@ -398,6 +407,12 @@ JsonValue Job::Jsonize() const } + if(m_maintenanceWindowHasBeenSet) + { + payload.WithString("MaintenanceWindow", m_maintenanceWindow); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JobRun.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JobRun.cpp index ec56ea95168..c4de2b7bbe5 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JobRun.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JobRun.cpp @@ -50,7 +50,8 @@ JobRun::JobRun() : m_dPUSeconds(0.0), m_dPUSecondsHasBeenSet(false), m_executionClass(ExecutionClass::NOT_SET), - m_executionClassHasBeenSet(false) + m_executionClassHasBeenSet(false), + m_maintenanceWindowHasBeenSet(false) { } @@ -86,7 +87,8 @@ JobRun::JobRun(JsonView jsonValue) : m_dPUSeconds(0.0), m_dPUSecondsHasBeenSet(false), m_executionClass(ExecutionClass::NOT_SET), - m_executionClassHasBeenSet(false) + m_executionClassHasBeenSet(false), + m_maintenanceWindowHasBeenSet(false) { *this = jsonValue; } @@ -260,6 +262,13 @@ JobRun& JobRun::operator =(JsonView jsonValue) m_executionClassHasBeenSet = true; } + if(jsonValue.ValueExists("MaintenanceWindow")) + { + m_maintenanceWindow = jsonValue.GetString("MaintenanceWindow"); + + m_maintenanceWindowHasBeenSet = true; + } + return *this; } @@ -409,6 +418,12 @@ JsonValue JobRun::Jsonize() const payload.WithString("ExecutionClass", ExecutionClassMapper::GetNameForExecutionClass(m_executionClass)); } + if(m_maintenanceWindowHasBeenSet) + { + payload.WithString("MaintenanceWindow", m_maintenanceWindow); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JobRunState.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JobRunState.cpp index 6d41ea0cc3e..36d33990e04 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JobRunState.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JobRunState.cpp @@ -29,6 +29,7 @@ namespace Aws static const int TIMEOUT_HASH = HashingUtils::HashString("TIMEOUT"); static const int ERROR__HASH = HashingUtils::HashString("ERROR"); static const int WAITING_HASH = HashingUtils::HashString("WAITING"); + static const int EXPIRED_HASH = HashingUtils::HashString("EXPIRED"); JobRunState GetJobRunStateForName(const Aws::String& name) @@ -70,6 +71,10 @@ namespace Aws { return JobRunState::WAITING; } + else if (hashCode == EXPIRED_HASH) + { + return JobRunState::EXPIRED; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -104,6 +109,8 @@ namespace Aws return "ERROR"; case JobRunState::WAITING: return "WAITING"; + case JobRunState::EXPIRED: + return "EXPIRED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-glue/source/model/JobUpdate.cpp b/generated/src/aws-cpp-sdk-glue/source/model/JobUpdate.cpp index db771f21ad1..a64a88a9f19 100644 --- a/generated/src/aws-cpp-sdk-glue/source/model/JobUpdate.cpp +++ b/generated/src/aws-cpp-sdk-glue/source/model/JobUpdate.cpp @@ -43,7 +43,8 @@ JobUpdate::JobUpdate() : m_codeGenConfigurationNodesHasBeenSet(false), m_executionClass(ExecutionClass::NOT_SET), m_executionClassHasBeenSet(false), - m_sourceControlDetailsHasBeenSet(false) + m_sourceControlDetailsHasBeenSet(false), + m_maintenanceWindowHasBeenSet(false) { } @@ -72,7 +73,8 @@ JobUpdate::JobUpdate(JsonView jsonValue) : m_codeGenConfigurationNodesHasBeenSet(false), m_executionClass(ExecutionClass::NOT_SET), m_executionClassHasBeenSet(false), - m_sourceControlDetailsHasBeenSet(false) + m_sourceControlDetailsHasBeenSet(false), + m_maintenanceWindowHasBeenSet(false) { *this = jsonValue; } @@ -221,6 +223,13 @@ JobUpdate& JobUpdate::operator =(JsonView jsonValue) m_sourceControlDetailsHasBeenSet = true; } + if(jsonValue.ValueExists("MaintenanceWindow")) + { + m_maintenanceWindow = jsonValue.GetString("MaintenanceWindow"); + + m_maintenanceWindowHasBeenSet = true; + } + return *this; } @@ -355,6 +364,12 @@ JsonValue JobUpdate::Jsonize() const } + if(m_maintenanceWindowHasBeenSet) + { + payload.WithString("MaintenanceWindow", m_maintenanceWindow); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Blueprint.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Blueprint.h index 863ca9ac888..9934a1128b9 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Blueprint.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Blueprint.h @@ -42,50 +42,50 @@ namespace Model /** - *

The ID for the virtual private server image (app_wordpress_4_4 - * or app_lamp_7_0).

+ *

The ID for the virtual private server image (app_wordpress_x_x + * or app_lamp_x_x).

*/ inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; } /** - *

The ID for the virtual private server image (app_wordpress_4_4 - * or app_lamp_7_0).

+ *

The ID for the virtual private server image (app_wordpress_x_x + * or app_lamp_x_x).

*/ inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; } /** - *

The ID for the virtual private server image (app_wordpress_4_4 - * or app_lamp_7_0).

+ *

The ID for the virtual private server image (app_wordpress_x_x + * or app_lamp_x_x).

*/ inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; } /** - *

The ID for the virtual private server image (app_wordpress_4_4 - * or app_lamp_7_0).

+ *

The ID for the virtual private server image (app_wordpress_x_x + * or app_lamp_x_x).

*/ inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); } /** - *

The ID for the virtual private server image (app_wordpress_4_4 - * or app_lamp_7_0).

+ *

The ID for the virtual private server image (app_wordpress_x_x + * or app_lamp_x_x).

*/ inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); } /** - *

The ID for the virtual private server image (app_wordpress_4_4 - * or app_lamp_7_0).

+ *

The ID for the virtual private server image (app_wordpress_x_x + * or app_lamp_x_x).

*/ inline Blueprint& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;} /** - *

The ID for the virtual private server image (app_wordpress_4_4 - * or app_lamp_7_0).

+ *

The ID for the virtual private server image (app_wordpress_x_x + * or app_lamp_x_x).

*/ inline Blueprint& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;} /** - *

The ID for the virtual private server image (app_wordpress_4_4 - * or app_lamp_7_0).

+ *

The ID for the virtual private server image (app_wordpress_x_x + * or app_lamp_x_x).

*/ inline Blueprint& WithBlueprintId(const char* value) { SetBlueprintId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Bundle.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Bundle.h index 0d842209809..662226c0803 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Bundle.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Bundle.h @@ -105,83 +105,83 @@ namespace Model /** - *

The bundle ID (micro_1_0).

+ *

The bundle ID (micro_x_x).

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** - *

The bundle ID (micro_1_0).

+ *

The bundle ID (micro_x_x).

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** - *

The bundle ID (micro_1_0).

+ *

The bundle ID (micro_x_x).

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** - *

The bundle ID (micro_1_0).

+ *

The bundle ID (micro_x_x).

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** - *

The bundle ID (micro_1_0).

+ *

The bundle ID (micro_x_x).

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** - *

The bundle ID (micro_1_0).

+ *

The bundle ID (micro_x_x).

*/ inline Bundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** - *

The bundle ID (micro_1_0).

+ *

The bundle ID (micro_x_x).

*/ inline Bundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** - *

The bundle ID (micro_1_0).

+ *

The bundle ID (micro_x_x).

*/ inline Bundle& WithBundleId(const char* value) { SetBundleId(value); return *this;} /** - *

The Amazon EC2 instance type (t2.micro).

+ *

The instance type (micro).

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** - *

The Amazon EC2 instance type (t2.micro).

+ *

The instance type (micro).

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** - *

The Amazon EC2 instance type (t2.micro).

+ *

The instance type (micro).

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** - *

The Amazon EC2 instance type (t2.micro).

+ *

The instance type (micro).

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** - *

The Amazon EC2 instance type (t2.micro).

+ *

The instance type (micro).

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** - *

The Amazon EC2 instance type (t2.micro).

+ *

The instance type (micro).

*/ inline Bundle& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** - *

The Amazon EC2 instance type (t2.micro).

+ *

The instance type (micro).

*/ inline Bundle& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** - *

The Amazon EC2 instance type (t2.micro).

+ *

The instance type (micro).

*/ inline Bundle& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateInstancesFromSnapshotRequest.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateInstancesFromSnapshotRequest.h index 07c632b2303..e451770a65b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateInstancesFromSnapshotRequest.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateInstancesFromSnapshotRequest.h @@ -311,49 +311,49 @@ namespace Model /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (micro_x_x).

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (micro_x_x).

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (micro_x_x).

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (micro_x_x).

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (micro_x_x).

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (micro_x_x).

*/ inline CreateInstancesFromSnapshotRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (micro_x_x).

*/ inline CreateInstancesFromSnapshotRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (micro_x_x).

*/ inline CreateInstancesFromSnapshotRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;} @@ -604,43 +604,49 @@ namespace Model /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline CreateInstancesFromSnapshotRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline CreateInstancesFromSnapshotRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateInstancesRequest.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateInstancesRequest.h index 0ad0f4e79b2..c8bc137c14b 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateInstancesRequest.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateInstancesRequest.h @@ -184,8 +184,8 @@ namespace Model /** - *

The ID for a virtual private server image (app_wordpress_4_4 or - * app_lamp_7_0). Use the get blueprints operation to + *

The ID for a virtual private server image (app_wordpress_x_x or + * app_lamp_x_x). Use the get blueprints operation to * return a list of available images (or blueprints).

Use * active blueprints when creating new instances. Inactive blueprints are listed to * support customers with existing instances and are not necessarily available to @@ -195,8 +195,8 @@ namespace Model inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; } /** - *

The ID for a virtual private server image (app_wordpress_4_4 or - * app_lamp_7_0). Use the get blueprints operation to + *

The ID for a virtual private server image (app_wordpress_x_x or + * app_lamp_x_x). Use the get blueprints operation to * return a list of available images (or blueprints).

Use * active blueprints when creating new instances. Inactive blueprints are listed to * support customers with existing instances and are not necessarily available to @@ -206,8 +206,8 @@ namespace Model inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; } /** - *

The ID for a virtual private server image (app_wordpress_4_4 or - * app_lamp_7_0). Use the get blueprints operation to + *

The ID for a virtual private server image (app_wordpress_x_x or + * app_lamp_x_x). Use the get blueprints operation to * return a list of available images (or blueprints).

Use * active blueprints when creating new instances. Inactive blueprints are listed to * support customers with existing instances and are not necessarily available to @@ -217,8 +217,8 @@ namespace Model inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; } /** - *

The ID for a virtual private server image (app_wordpress_4_4 or - * app_lamp_7_0). Use the get blueprints operation to + *

The ID for a virtual private server image (app_wordpress_x_x or + * app_lamp_x_x). Use the get blueprints operation to * return a list of available images (or blueprints).

Use * active blueprints when creating new instances. Inactive blueprints are listed to * support customers with existing instances and are not necessarily available to @@ -228,8 +228,8 @@ namespace Model inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); } /** - *

The ID for a virtual private server image (app_wordpress_4_4 or - * app_lamp_7_0). Use the get blueprints operation to + *

The ID for a virtual private server image (app_wordpress_x_x or + * app_lamp_x_x). Use the get blueprints operation to * return a list of available images (or blueprints).

Use * active blueprints when creating new instances. Inactive blueprints are listed to * support customers with existing instances and are not necessarily available to @@ -239,8 +239,8 @@ namespace Model inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); } /** - *

The ID for a virtual private server image (app_wordpress_4_4 or - * app_lamp_7_0). Use the get blueprints operation to + *

The ID for a virtual private server image (app_wordpress_x_x or + * app_lamp_x_x). Use the get blueprints operation to * return a list of available images (or blueprints).

Use * active blueprints when creating new instances. Inactive blueprints are listed to * support customers with existing instances and are not necessarily available to @@ -250,8 +250,8 @@ namespace Model inline CreateInstancesRequest& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;} /** - *

The ID for a virtual private server image (app_wordpress_4_4 or - * app_lamp_7_0). Use the get blueprints operation to + *

The ID for a virtual private server image (app_wordpress_x_x or + * app_lamp_x_x). Use the get blueprints operation to * return a list of available images (or blueprints).

Use * active blueprints when creating new instances. Inactive blueprints are listed to * support customers with existing instances and are not necessarily available to @@ -261,8 +261,8 @@ namespace Model inline CreateInstancesRequest& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;} /** - *

The ID for a virtual private server image (app_wordpress_4_4 or - * app_lamp_7_0). Use the get blueprints operation to + *

The ID for a virtual private server image (app_wordpress_x_x or + * app_lamp_x_x). Use the get blueprints operation to * return a list of available images (or blueprints).

Use * active blueprints when creating new instances. Inactive blueprints are listed to * support customers with existing instances and are not necessarily available to @@ -274,49 +274,49 @@ namespace Model /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (medium_x_x).

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (medium_x_x).

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (medium_x_x).

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (medium_x_x).

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (medium_x_x).

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (medium_x_x).

*/ inline CreateInstancesRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (medium_x_x).

*/ inline CreateInstancesRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** *

The bundle of specification information for your virtual private server (or - * instance), including the pricing plan (micro_1_0).

+ * instance), including the pricing plan (medium_x_x).

*/ inline CreateInstancesRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;} @@ -567,43 +567,49 @@ namespace Model /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline CreateInstancesRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

The IP address type for the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline CreateInstancesRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateLoadBalancerRequest.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateLoadBalancerRequest.h index 87c32de70fb..ff6fe9eb4b2 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateLoadBalancerRequest.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/CreateLoadBalancerRequest.h @@ -417,43 +417,49 @@ namespace Model /** *

The IP address type for the load balancer.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

The IP address type for the load balancer.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

The IP address type for the load balancer.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

The IP address type for the load balancer.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

The IP address type for the load balancer.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline CreateLoadBalancerRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

The IP address type for the load balancer.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

The default value is dualstack.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

The default value is + * dualstack.

*/ inline CreateLoadBalancerRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Instance.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Instance.h index 17a92948adc..b43cb5b06ef 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Instance.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/Instance.h @@ -50,50 +50,42 @@ namespace Model /** - *

The name the user gave the instance - * (Amazon_Linux-1GB-Ohio-1).

+ *

The name the user gave the instance (Amazon_Linux_2023-1).

*/ inline const Aws::String& GetName() const{ return m_name; } /** - *

The name the user gave the instance - * (Amazon_Linux-1GB-Ohio-1).

+ *

The name the user gave the instance (Amazon_Linux_2023-1).

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** - *

The name the user gave the instance - * (Amazon_Linux-1GB-Ohio-1).

+ *

The name the user gave the instance (Amazon_Linux_2023-1).

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** - *

The name the user gave the instance - * (Amazon_Linux-1GB-Ohio-1).

+ *

The name the user gave the instance (Amazon_Linux_2023-1).

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** - *

The name the user gave the instance - * (Amazon_Linux-1GB-Ohio-1).

+ *

The name the user gave the instance (Amazon_Linux_2023-1).

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** - *

The name the user gave the instance - * (Amazon_Linux-1GB-Ohio-1).

+ *

The name the user gave the instance (Amazon_Linux_2023-1).

*/ inline Instance& WithName(const Aws::String& value) { SetName(value); return *this;} /** - *

The name the user gave the instance - * (Amazon_Linux-1GB-Ohio-1).

+ *

The name the user gave the instance (Amazon_Linux_2023-1).

*/ inline Instance& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** - *

The name the user gave the instance - * (Amazon_Linux-1GB-Ohio-1).

+ *

The name the user gave the instance (Amazon_Linux_2023-1).

*/ inline Instance& WithName(const char* value) { SetName(value); return *this;} @@ -369,124 +361,124 @@ namespace Model /** - *

The blueprint ID (os_amlinux_2016_03).

+ *

The blueprint ID (amazon_linux_2023).

*/ inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; } /** - *

The blueprint ID (os_amlinux_2016_03).

+ *

The blueprint ID (amazon_linux_2023).

*/ inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; } /** - *

The blueprint ID (os_amlinux_2016_03).

+ *

The blueprint ID (amazon_linux_2023).

*/ inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; } /** - *

The blueprint ID (os_amlinux_2016_03).

+ *

The blueprint ID (amazon_linux_2023).

*/ inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); } /** - *

The blueprint ID (os_amlinux_2016_03).

+ *

The blueprint ID (amazon_linux_2023).

*/ inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); } /** - *

The blueprint ID (os_amlinux_2016_03).

+ *

The blueprint ID (amazon_linux_2023).

*/ inline Instance& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;} /** - *

The blueprint ID (os_amlinux_2016_03).

+ *

The blueprint ID (amazon_linux_2023).

*/ inline Instance& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;} /** - *

The blueprint ID (os_amlinux_2016_03).

+ *

The blueprint ID (amazon_linux_2023).

*/ inline Instance& WithBlueprintId(const char* value) { SetBlueprintId(value); return *this;} /** - *

The friendly name of the blueprint (Amazon Linux).

+ *

The friendly name of the blueprint (Amazon Linux 2023).

*/ inline const Aws::String& GetBlueprintName() const{ return m_blueprintName; } /** - *

The friendly name of the blueprint (Amazon Linux).

+ *

The friendly name of the blueprint (Amazon Linux 2023).

*/ inline bool BlueprintNameHasBeenSet() const { return m_blueprintNameHasBeenSet; } /** - *

The friendly name of the blueprint (Amazon Linux).

+ *

The friendly name of the blueprint (Amazon Linux 2023).

*/ inline void SetBlueprintName(const Aws::String& value) { m_blueprintNameHasBeenSet = true; m_blueprintName = value; } /** - *

The friendly name of the blueprint (Amazon Linux).

+ *

The friendly name of the blueprint (Amazon Linux 2023).

*/ inline void SetBlueprintName(Aws::String&& value) { m_blueprintNameHasBeenSet = true; m_blueprintName = std::move(value); } /** - *

The friendly name of the blueprint (Amazon Linux).

+ *

The friendly name of the blueprint (Amazon Linux 2023).

*/ inline void SetBlueprintName(const char* value) { m_blueprintNameHasBeenSet = true; m_blueprintName.assign(value); } /** - *

The friendly name of the blueprint (Amazon Linux).

+ *

The friendly name of the blueprint (Amazon Linux 2023).

*/ inline Instance& WithBlueprintName(const Aws::String& value) { SetBlueprintName(value); return *this;} /** - *

The friendly name of the blueprint (Amazon Linux).

+ *

The friendly name of the blueprint (Amazon Linux 2023).

*/ inline Instance& WithBlueprintName(Aws::String&& value) { SetBlueprintName(std::move(value)); return *this;} /** - *

The friendly name of the blueprint (Amazon Linux).

+ *

The friendly name of the blueprint (Amazon Linux 2023).

*/ inline Instance& WithBlueprintName(const char* value) { SetBlueprintName(value); return *this;} /** - *

The bundle for the instance (micro_1_0).

+ *

The bundle for the instance (micro_x_x).

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** - *

The bundle for the instance (micro_1_0).

+ *

The bundle for the instance (micro_x_x).

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** - *

The bundle for the instance (micro_1_0).

+ *

The bundle for the instance (micro_x_x).

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** - *

The bundle for the instance (micro_1_0).

+ *

The bundle for the instance (micro_x_x).

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** - *

The bundle for the instance (micro_1_0).

+ *

The bundle for the instance (micro_x_x).

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** - *

The bundle for the instance (micro_1_0).

+ *

The bundle for the instance (micro_x_x).

*/ inline Instance& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** - *

The bundle for the instance (micro_1_0).

+ *

The bundle for the instance (micro_x_x).

*/ inline Instance& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** - *

The bundle for the instance (micro_1_0).

+ *

The bundle for the instance (micro_x_x).

*/ inline Instance& WithBundleId(const char* value) { SetBundleId(value); return *this;} @@ -687,43 +679,43 @@ namespace Model /** *

The IP address type of the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

*/ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

The IP address type of the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

*/ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

The IP address type of the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

*/ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

The IP address type of the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

*/ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

The IP address type of the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

*/ inline Instance& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

The IP address type of the instance.

The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

+ * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

*/ inline Instance& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstancePortInfo.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstancePortInfo.h index 5d6924c3ea1..972ed8236d1 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstancePortInfo.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstancePortInfo.h @@ -202,7 +202,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

+ * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline const NetworkProtocol& GetProtocol() const{ return m_protocol; } @@ -228,7 +232,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } @@ -254,7 +262,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline void SetProtocol(const NetworkProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } @@ -280,7 +292,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline void SetProtocol(NetworkProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } @@ -306,7 +322,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline InstancePortInfo& WithProtocol(const NetworkProtocol& value) { SetProtocol(value); return *this;} @@ -332,7 +352,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline InstancePortInfo& WithProtocol(NetworkProtocol&& value) { SetProtocol(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstancePortState.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstancePortState.h index 3b2ffcfedae..543516ad140 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstancePortState.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstancePortState.h @@ -201,7 +201,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline const NetworkProtocol& GetProtocol() const{ return m_protocol; } @@ -227,7 +231,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } @@ -253,7 +261,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline void SetProtocol(const NetworkProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } @@ -279,7 +291,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline void SetProtocol(NetworkProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } @@ -305,7 +321,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline InstancePortState& WithProtocol(const NetworkProtocol& value) { SetProtocol(value); return *this;} @@ -331,7 +351,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline InstancePortState& WithProtocol(NetworkProtocol&& value) { SetProtocol(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstanceSnapshot.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstanceSnapshot.h index 4aa74f538cc..3290408aeff 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstanceSnapshot.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstanceSnapshot.h @@ -584,56 +584,56 @@ namespace Model /** *

    The blueprint ID from which you created the snapshot - * (os_debian_8_3). A blueprint is a virtual private server (or + * (amazon_linux_2023). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

    */ inline const Aws::String& GetFromBlueprintId() const{ return m_fromBlueprintId; } /** *

    The blueprint ID from which you created the snapshot - * (os_debian_8_3). A blueprint is a virtual private server (or + * (amazon_linux_2023). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

    */ inline bool FromBlueprintIdHasBeenSet() const { return m_fromBlueprintIdHasBeenSet; } /** *

    The blueprint ID from which you created the snapshot - * (os_debian_8_3). A blueprint is a virtual private server (or + * (amazon_linux_2023). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

    */ inline void SetFromBlueprintId(const Aws::String& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = value; } /** *

    The blueprint ID from which you created the snapshot - * (os_debian_8_3). A blueprint is a virtual private server (or + * (amazon_linux_2023). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

    */ inline void SetFromBlueprintId(Aws::String&& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = std::move(value); } /** *

    The blueprint ID from which you created the snapshot - * (os_debian_8_3). A blueprint is a virtual private server (or + * (amazon_linux_2023). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

    */ inline void SetFromBlueprintId(const char* value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId.assign(value); } /** *

    The blueprint ID from which you created the snapshot - * (os_debian_8_3). A blueprint is a virtual private server (or + * (amazon_linux_2023). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

    */ inline InstanceSnapshot& WithFromBlueprintId(const Aws::String& value) { SetFromBlueprintId(value); return *this;} /** *

    The blueprint ID from which you created the snapshot - * (os_debian_8_3). A blueprint is a virtual private server (or + * (amazon_linux_2023). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

    */ inline InstanceSnapshot& WithFromBlueprintId(Aws::String&& value) { SetFromBlueprintId(std::move(value)); return *this;} /** *

    The blueprint ID from which you created the snapshot - * (os_debian_8_3). A blueprint is a virtual private server (or + * (amazon_linux_2023). A blueprint is a virtual private server (or * instance) image used to create instances quickly.

    */ inline InstanceSnapshot& WithFromBlueprintId(const char* value) { SetFromBlueprintId(value); return *this;} @@ -641,49 +641,49 @@ namespace Model /** *

    The bundle ID from which you created the snapshot - * (micro_1_0).

    + * (micro_x_x).

    */ inline const Aws::String& GetFromBundleId() const{ return m_fromBundleId; } /** *

    The bundle ID from which you created the snapshot - * (micro_1_0).

    + * (micro_x_x).

    */ inline bool FromBundleIdHasBeenSet() const { return m_fromBundleIdHasBeenSet; } /** *

    The bundle ID from which you created the snapshot - * (micro_1_0).

    + * (micro_x_x).

    */ inline void SetFromBundleId(const Aws::String& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = value; } /** *

    The bundle ID from which you created the snapshot - * (micro_1_0).

    + * (micro_x_x).

    */ inline void SetFromBundleId(Aws::String&& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = std::move(value); } /** *

    The bundle ID from which you created the snapshot - * (micro_1_0).

    + * (micro_x_x).

    */ inline void SetFromBundleId(const char* value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId.assign(value); } /** *

    The bundle ID from which you created the snapshot - * (micro_1_0).

    + * (micro_x_x).

    */ inline InstanceSnapshot& WithFromBundleId(const Aws::String& value) { SetFromBundleId(value); return *this;} /** *

    The bundle ID from which you created the snapshot - * (micro_1_0).

    + * (micro_x_x).

    */ inline InstanceSnapshot& WithFromBundleId(Aws::String&& value) { SetFromBundleId(std::move(value)); return *this;} /** *

    The bundle ID from which you created the snapshot - * (micro_1_0).

    + * (micro_x_x).

    */ inline InstanceSnapshot& WithFromBundleId(const char* value) { SetFromBundleId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstanceSnapshotInfo.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstanceSnapshotInfo.h index ff4434f8ed4..5828e24b6bc 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstanceSnapshotInfo.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/InstanceSnapshotInfo.h @@ -41,98 +41,98 @@ namespace Model /** *

    The bundle ID from which the source instance was created - * (micro_1_0).

    + * (micro_x_x).

    */ inline const Aws::String& GetFromBundleId() const{ return m_fromBundleId; } /** *

    The bundle ID from which the source instance was created - * (micro_1_0).

    + * (micro_x_x).

    */ inline bool FromBundleIdHasBeenSet() const { return m_fromBundleIdHasBeenSet; } /** *

    The bundle ID from which the source instance was created - * (micro_1_0).

    + * (micro_x_x).

    */ inline void SetFromBundleId(const Aws::String& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = value; } /** *

    The bundle ID from which the source instance was created - * (micro_1_0).

    + * (micro_x_x).

    */ inline void SetFromBundleId(Aws::String&& value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId = std::move(value); } /** *

    The bundle ID from which the source instance was created - * (micro_1_0).

    + * (micro_x_x).

    */ inline void SetFromBundleId(const char* value) { m_fromBundleIdHasBeenSet = true; m_fromBundleId.assign(value); } /** *

    The bundle ID from which the source instance was created - * (micro_1_0).

    + * (micro_x_x).

    */ inline InstanceSnapshotInfo& WithFromBundleId(const Aws::String& value) { SetFromBundleId(value); return *this;} /** *

    The bundle ID from which the source instance was created - * (micro_1_0).

    + * (micro_x_x).

    */ inline InstanceSnapshotInfo& WithFromBundleId(Aws::String&& value) { SetFromBundleId(std::move(value)); return *this;} /** *

    The bundle ID from which the source instance was created - * (micro_1_0).

    + * (micro_x_x).

    */ inline InstanceSnapshotInfo& WithFromBundleId(const char* value) { SetFromBundleId(value); return *this;} /** *

    The blueprint ID from which the source instance - * (os_debian_8_3).

    + * (amazon_linux_2023).

    */ inline const Aws::String& GetFromBlueprintId() const{ return m_fromBlueprintId; } /** *

    The blueprint ID from which the source instance - * (os_debian_8_3).

    + * (amazon_linux_2023).

    */ inline bool FromBlueprintIdHasBeenSet() const { return m_fromBlueprintIdHasBeenSet; } /** *

    The blueprint ID from which the source instance - * (os_debian_8_3).

    + * (amazon_linux_2023).

    */ inline void SetFromBlueprintId(const Aws::String& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = value; } /** *

    The blueprint ID from which the source instance - * (os_debian_8_3).

    + * (amazon_linux_2023).

    */ inline void SetFromBlueprintId(Aws::String&& value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId = std::move(value); } /** *

    The blueprint ID from which the source instance - * (os_debian_8_3).

    + * (amazon_linux_2023).

    */ inline void SetFromBlueprintId(const char* value) { m_fromBlueprintIdHasBeenSet = true; m_fromBlueprintId.assign(value); } /** *

    The blueprint ID from which the source instance - * (os_debian_8_3).

    + * (amazon_linux_2023).

    */ inline InstanceSnapshotInfo& WithFromBlueprintId(const Aws::String& value) { SetFromBlueprintId(value); return *this;} /** *

    The blueprint ID from which the source instance - * (os_debian_8_3).

    + * (amazon_linux_2023).

    */ inline InstanceSnapshotInfo& WithFromBlueprintId(Aws::String&& value) { SetFromBlueprintId(std::move(value)); return *this;} /** *

    The blueprint ID from which the source instance - * (os_debian_8_3).

    + * (amazon_linux_2023).

    */ inline InstanceSnapshotInfo& WithFromBlueprintId(const char* value) { SetFromBlueprintId(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/IpAddressType.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/IpAddressType.h index c760b031f55..ff2243720e1 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/IpAddressType.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/IpAddressType.h @@ -17,7 +17,8 @@ namespace Model { NOT_SET, dualstack, - ipv4 + ipv4, + ipv6 }; namespace IpAddressTypeMapper diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/LoadBalancer.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/LoadBalancer.h index 7374f4147b1..da207e1f435 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/LoadBalancer.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/LoadBalancer.h @@ -779,43 +779,43 @@ namespace Model /** *

    The IP address type of the load balancer.

    The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

    + * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

    The IP address type of the load balancer.

    The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

    + * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

    The IP address type of the load balancer.

    The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

    + * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

    The IP address type of the load balancer.

    The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

    + * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

    The IP address type of the load balancer.

    The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

    + * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline LoadBalancer& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

    The IP address type of the load balancer.

    The possible values are - * ipv4 for IPv4 only, and dualstack for IPv4 and - * IPv6.

    + * ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline LoadBalancer& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/NetworkProtocol.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/NetworkProtocol.h index 848eee6d5a9..95f10fbbf73 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/NetworkProtocol.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/NetworkProtocol.h @@ -19,7 +19,8 @@ namespace Model tcp, all, udp, - icmp + icmp, + icmpv6 }; namespace NetworkProtocolMapper diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/PortInfo.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/PortInfo.h index 6e430b95732..e95e563cc14 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/PortInfo.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/PortInfo.h @@ -201,7 +201,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline const NetworkProtocol& GetProtocol() const{ return m_protocol; } @@ -227,7 +231,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } @@ -253,7 +261,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline void SetProtocol(const NetworkProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } @@ -279,7 +291,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline void SetProtocol(NetworkProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } @@ -305,7 +321,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline PortInfo& WithProtocol(const NetworkProtocol& value) { SetProtocol(value); return *this;} @@ -331,7 +351,11 @@ namespace Model * an error is indicated when an instance could not be reached. When you specify * icmp as the protocol, you must specify the ICMP type * using the fromPort parameter, and ICMP code using the - * toPort parameter.

    + * toPort parameter.

  • icmp6 - Internet + * Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as + * the protocol, you must specify the ICMP type using the + * fromPort parameter, and ICMP code using the toPort + * parameter.

  • */ inline PortInfo& WithProtocol(NetworkProtocol&& value) { SetProtocol(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/SetIpAddressTypeRequest.h b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/SetIpAddressTypeRequest.h index 0c0a913a178..e9ae485df45 100644 --- a/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/SetIpAddressTypeRequest.h +++ b/generated/src/aws-cpp-sdk-lightsail/include/aws/lightsail/model/SetIpAddressTypeRequest.h @@ -140,46 +140,95 @@ namespace Model /** *

    The IP address type to set for the specified resource.

    The possible - * values are ipv4 for IPv4 only, and dualstack for IPv4 - * and IPv6.

    + * values are ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

    The IP address type to set for the specified resource.

    The possible - * values are ipv4 for IPv4 only, and dualstack for IPv4 - * and IPv6.

    + * values are ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

    The IP address type to set for the specified resource.

    The possible - * values are ipv4 for IPv4 only, and dualstack for IPv4 - * and IPv6.

    + * values are ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

    The IP address type to set for the specified resource.

    The possible - * values are ipv4 for IPv4 only, and dualstack for IPv4 - * and IPv6.

    + * values are ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

    The IP address type to set for the specified resource.

    The possible - * values are ipv4 for IPv4 only, and dualstack for IPv4 - * and IPv6.

    + * values are ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline SetIpAddressTypeRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

    The IP address type to set for the specified resource.

    The possible - * values are ipv4 for IPv4 only, and dualstack for IPv4 - * and IPv6.

    + * values are ipv4 for IPv4 only, ipv6 for IPv6 only, and + * dualstack for IPv4 and IPv6.

    */ inline SetIpAddressTypeRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} + + /** + *

    Required parameter to accept the instance bundle update when changing to, and + * from, IPv6-only.

    An instance bundle will change when switching + * from dual-stack or ipv4, to ipv6. It also + * changes when switching from ipv6, to dual-stack or + * ipv4.

    You must include this parameter in the command to + * update the bundle. For example, if you switch from dual-stack to + * ipv6, the bundle will be updated, and billing for the IPv6-only + * instance bundle begins immediately.

    + */ + inline bool GetAcceptBundleUpdate() const{ return m_acceptBundleUpdate; } + + /** + *

    Required parameter to accept the instance bundle update when changing to, and + * from, IPv6-only.

    An instance bundle will change when switching + * from dual-stack or ipv4, to ipv6. It also + * changes when switching from ipv6, to dual-stack or + * ipv4.

    You must include this parameter in the command to + * update the bundle. For example, if you switch from dual-stack to + * ipv6, the bundle will be updated, and billing for the IPv6-only + * instance bundle begins immediately.

    + */ + inline bool AcceptBundleUpdateHasBeenSet() const { return m_acceptBundleUpdateHasBeenSet; } + + /** + *

    Required parameter to accept the instance bundle update when changing to, and + * from, IPv6-only.

    An instance bundle will change when switching + * from dual-stack or ipv4, to ipv6. It also + * changes when switching from ipv6, to dual-stack or + * ipv4.

    You must include this parameter in the command to + * update the bundle. For example, if you switch from dual-stack to + * ipv6, the bundle will be updated, and billing for the IPv6-only + * instance bundle begins immediately.

    + */ + inline void SetAcceptBundleUpdate(bool value) { m_acceptBundleUpdateHasBeenSet = true; m_acceptBundleUpdate = value; } + + /** + *

    Required parameter to accept the instance bundle update when changing to, and + * from, IPv6-only.

    An instance bundle will change when switching + * from dual-stack or ipv4, to ipv6. It also + * changes when switching from ipv6, to dual-stack or + * ipv4.

    You must include this parameter in the command to + * update the bundle. For example, if you switch from dual-stack to + * ipv6, the bundle will be updated, and billing for the IPv6-only + * instance bundle begins immediately.

    + */ + inline SetIpAddressTypeRequest& WithAcceptBundleUpdate(bool value) { SetAcceptBundleUpdate(value); return *this;} + private: ResourceType m_resourceType; @@ -190,6 +239,9 @@ namespace Model IpAddressType m_ipAddressType; bool m_ipAddressTypeHasBeenSet = false; + + bool m_acceptBundleUpdate; + bool m_acceptBundleUpdateHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/IpAddressType.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/IpAddressType.cpp index dd20b51d2b5..b30fd3834f8 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/IpAddressType.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/IpAddressType.cpp @@ -22,6 +22,7 @@ namespace Aws static const int dualstack_HASH = HashingUtils::HashString("dualstack"); static const int ipv4_HASH = HashingUtils::HashString("ipv4"); + static const int ipv6_HASH = HashingUtils::HashString("ipv6"); IpAddressType GetIpAddressTypeForName(const Aws::String& name) @@ -35,6 +36,10 @@ namespace Aws { return IpAddressType::ipv4; } + else if (hashCode == ipv6_HASH) + { + return IpAddressType::ipv6; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -55,6 +60,8 @@ namespace Aws return "dualstack"; case IpAddressType::ipv4: return "ipv4"; + case IpAddressType::ipv6: + return "ipv6"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/NetworkProtocol.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/NetworkProtocol.cpp index a20f630b8aa..9795604e242 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/NetworkProtocol.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/NetworkProtocol.cpp @@ -24,6 +24,7 @@ namespace Aws static const int all_HASH = HashingUtils::HashString("all"); static const int udp_HASH = HashingUtils::HashString("udp"); static const int icmp_HASH = HashingUtils::HashString("icmp"); + static const int icmpv6_HASH = HashingUtils::HashString("icmpv6"); NetworkProtocol GetNetworkProtocolForName(const Aws::String& name) @@ -45,6 +46,10 @@ namespace Aws { return NetworkProtocol::icmp; } + else if (hashCode == icmpv6_HASH) + { + return NetworkProtocol::icmpv6; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -69,6 +74,8 @@ namespace Aws return "udp"; case NetworkProtocol::icmp: return "icmp"; + case NetworkProtocol::icmpv6: + return "icmpv6"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-lightsail/source/model/SetIpAddressTypeRequest.cpp b/generated/src/aws-cpp-sdk-lightsail/source/model/SetIpAddressTypeRequest.cpp index 9beb3a62e24..97768c7e3e1 100644 --- a/generated/src/aws-cpp-sdk-lightsail/source/model/SetIpAddressTypeRequest.cpp +++ b/generated/src/aws-cpp-sdk-lightsail/source/model/SetIpAddressTypeRequest.cpp @@ -17,7 +17,9 @@ SetIpAddressTypeRequest::SetIpAddressTypeRequest() : m_resourceTypeHasBeenSet(false), m_resourceNameHasBeenSet(false), m_ipAddressType(IpAddressType::NOT_SET), - m_ipAddressTypeHasBeenSet(false) + m_ipAddressTypeHasBeenSet(false), + m_acceptBundleUpdate(false), + m_acceptBundleUpdateHasBeenSet(false) { } @@ -41,6 +43,12 @@ Aws::String SetIpAddressTypeRequest::SerializePayload() const payload.WithString("ipAddressType", IpAddressTypeMapper::GetNameForIpAddressType(m_ipAddressType)); } + if(m_acceptBundleUpdateHasBeenSet) + { + payload.WithBool("acceptBundleUpdate", m_acceptBundleUpdate); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-mailmanager/CMakeLists.txt b/generated/src/aws-cpp-sdk-mailmanager/CMakeLists.txt new file mode 100644 index 00000000000..b82d8f23c14 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/CMakeLists.txt @@ -0,0 +1,76 @@ +add_project(aws-cpp-sdk-mailmanager "C++ SDK for the AWS mailmanager service" aws-cpp-sdk-core) + +file(GLOB AWS_MAILMANAGER_HEADERS + "include/aws/mailmanager/*.h" +) + +file(GLOB AWS_MAILMANAGER_MODEL_HEADERS + "include/aws/mailmanager/model/*.h" +) + +file(GLOB AWS_MAILMANAGER_SOURCE + "source/*.cpp" +) + +file(GLOB AWS_MAILMANAGER_MODEL_SOURCE + "source/model/*.cpp" +) + +file(GLOB MAILMANAGER_UNIFIED_HEADERS + ${AWS_MAILMANAGER_HEADERS} + ${AWS_MAILMANAGER_MODEL_HEADERS} +) + +file(GLOB MAILMANAGER_UNITY_SRC + ${AWS_MAILMANAGER_SOURCE} + ${AWS_MAILMANAGER_MODEL_SOURCE} +) + +if(ENABLE_UNITY_BUILD) + enable_unity_build("MAILMANAGER" MAILMANAGER_UNITY_SRC) +endif() + +file(GLOB MAILMANAGER_SRC + ${MAILMANAGER_UNIFIED_HEADERS} + ${MAILMANAGER_UNITY_SRC} +) + +if(WIN32) + #if we are compiling for visual studio, create a sane directory tree. + if(MSVC) + source_group("Header Files\\aws\\mailmanager" FILES ${AWS_MAILMANAGER_HEADERS}) + source_group("Header Files\\aws\\mailmanager\\model" FILES ${AWS_MAILMANAGER_MODEL_HEADERS}) + source_group("Source Files" FILES ${AWS_MAILMANAGER_SOURCE}) + source_group("Source Files\\model" FILES ${AWS_MAILMANAGER_MODEL_SOURCE}) + endif(MSVC) +endif() + +set(MAILMANAGER_INCLUDES + "${CMAKE_CURRENT_SOURCE_DIR}/include/" +) + +add_library(${PROJECT_NAME} ${MAILMANAGER_SRC}) +add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) + target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_MAILMANAGER_EXPORTS") +endif() + +target_include_directories(${PROJECT_NAME} PUBLIC + $ + $) + +target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) + + +setup_install() + +install (FILES ${AWS_MAILMANAGER_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/mailmanager) +install (FILES ${AWS_MAILMANAGER_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/mailmanager/model) + +do_packaging() + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerClient.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerClient.h new file mode 100644 index 00000000000..d1d123b3fc2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerClient.h @@ -0,0 +1,1306 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ + /** + *

    AWS SES Mail Manager API

    AWS SES Mail Manager API contains + * operations and data types that comprise the Mail Manager feature of Amazon + * Simple Email Service.

    Mail Manager is a set of Amazon SES email gateway + * features designed to help you strengthen your organization's email + * infrastructure, simplify email workflow management, and streamline email + * compliance control. To learn more, see the Mail Manager + * chapter in the Amazon SES Developer Guide.

    + */ + class AWS_MAILMANAGER_API MailManagerClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods + { + public: + typedef Aws::Client::AWSJsonClient BASECLASS; + static const char* GetServiceName(); + static const char* GetAllocationTag(); + + typedef MailManagerClientConfiguration ClientConfigurationType; + typedef MailManagerEndpointProvider EndpointProviderType; + + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + MailManagerClient(const Aws::MailManager::MailManagerClientConfiguration& clientConfiguration = Aws::MailManager::MailManagerClientConfiguration(), + std::shared_ptr endpointProvider = nullptr); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + MailManagerClient(const Aws::Auth::AWSCredentials& credentials, + std::shared_ptr endpointProvider = nullptr, + const Aws::MailManager::MailManagerClientConfiguration& clientConfiguration = Aws::MailManager::MailManagerClientConfiguration()); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + MailManagerClient(const std::shared_ptr& credentialsProvider, + std::shared_ptr endpointProvider = nullptr, + const Aws::MailManager::MailManagerClientConfiguration& clientConfiguration = Aws::MailManager::MailManagerClientConfiguration()); + + + /* Legacy constructors due deprecation */ + /** + * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + MailManagerClient(const Aws::Client::ClientConfiguration& clientConfiguration); + + /** + * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config + * is not specified, it will be initialized to default values. + */ + MailManagerClient(const Aws::Auth::AWSCredentials& credentials, + const Aws::Client::ClientConfiguration& clientConfiguration); + + /** + * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, + * the default http client factory will be used + */ + MailManagerClient(const std::shared_ptr& credentialsProvider, + const Aws::Client::ClientConfiguration& clientConfiguration); + + /* End of legacy constructors due deprecation */ + virtual ~MailManagerClient(); + + /** + *

    Creates an Add On instance for the subscription indicated in the request. The + * resulting Amazon Resource Name (ARN) can be used in a conditional statement for + * a rule set or traffic policy.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateAddonInstanceOutcome CreateAddonInstance(const Model::CreateAddonInstanceRequest& request) const; + + /** + * A Callable wrapper for CreateAddonInstance that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateAddonInstanceOutcomeCallable CreateAddonInstanceCallable(const CreateAddonInstanceRequestT& request) const + { + return SubmitCallable(&MailManagerClient::CreateAddonInstance, request); + } + + /** + * An Async wrapper for CreateAddonInstance that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateAddonInstanceAsync(const CreateAddonInstanceRequestT& request, const CreateAddonInstanceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::CreateAddonInstance, request, handler, context); + } + + /** + *

    Creates a subscription for an Add On representing the acceptance of its terms + * of use and additional pricing. The subscription can then be used to create an + * instance for use in rule sets or traffic policies.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateAddonSubscriptionOutcome CreateAddonSubscription(const Model::CreateAddonSubscriptionRequest& request) const; + + /** + * A Callable wrapper for CreateAddonSubscription that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateAddonSubscriptionOutcomeCallable CreateAddonSubscriptionCallable(const CreateAddonSubscriptionRequestT& request) const + { + return SubmitCallable(&MailManagerClient::CreateAddonSubscription, request); + } + + /** + * An Async wrapper for CreateAddonSubscription that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateAddonSubscriptionAsync(const CreateAddonSubscriptionRequestT& request, const CreateAddonSubscriptionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::CreateAddonSubscription, request, handler, context); + } + + /** + *

    Creates a new email archive resource for storing and retaining + * emails.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateArchiveOutcome CreateArchive(const Model::CreateArchiveRequest& request) const; + + /** + * A Callable wrapper for CreateArchive that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateArchiveOutcomeCallable CreateArchiveCallable(const CreateArchiveRequestT& request) const + { + return SubmitCallable(&MailManagerClient::CreateArchive, request); + } + + /** + * An Async wrapper for CreateArchive that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateArchiveAsync(const CreateArchiveRequestT& request, const CreateArchiveResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::CreateArchive, request, handler, context); + } + + /** + *

    Provision a new ingress endpoint resource.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateIngressPointOutcome CreateIngressPoint(const Model::CreateIngressPointRequest& request) const; + + /** + * A Callable wrapper for CreateIngressPoint that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateIngressPointOutcomeCallable CreateIngressPointCallable(const CreateIngressPointRequestT& request) const + { + return SubmitCallable(&MailManagerClient::CreateIngressPoint, request); + } + + /** + * An Async wrapper for CreateIngressPoint that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateIngressPointAsync(const CreateIngressPointRequestT& request, const CreateIngressPointResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::CreateIngressPoint, request, handler, context); + } + + /** + *

    Creates a relay resource which can be used in rules to relay incoming emails + * to defined relay destinations.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateRelayOutcome CreateRelay(const Model::CreateRelayRequest& request) const; + + /** + * A Callable wrapper for CreateRelay that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateRelayOutcomeCallable CreateRelayCallable(const CreateRelayRequestT& request) const + { + return SubmitCallable(&MailManagerClient::CreateRelay, request); + } + + /** + * An Async wrapper for CreateRelay that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateRelayAsync(const CreateRelayRequestT& request, const CreateRelayResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::CreateRelay, request, handler, context); + } + + /** + *

    Provision a new rule set.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateRuleSetOutcome CreateRuleSet(const Model::CreateRuleSetRequest& request) const; + + /** + * A Callable wrapper for CreateRuleSet that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateRuleSetOutcomeCallable CreateRuleSetCallable(const CreateRuleSetRequestT& request) const + { + return SubmitCallable(&MailManagerClient::CreateRuleSet, request); + } + + /** + * An Async wrapper for CreateRuleSet that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateRuleSetAsync(const CreateRuleSetRequestT& request, const CreateRuleSetResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::CreateRuleSet, request, handler, context); + } + + /** + *

    Provision a new traffic policy resource.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateTrafficPolicyOutcome CreateTrafficPolicy(const Model::CreateTrafficPolicyRequest& request) const; + + /** + * A Callable wrapper for CreateTrafficPolicy that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateTrafficPolicyOutcomeCallable CreateTrafficPolicyCallable(const CreateTrafficPolicyRequestT& request) const + { + return SubmitCallable(&MailManagerClient::CreateTrafficPolicy, request); + } + + /** + * An Async wrapper for CreateTrafficPolicy that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateTrafficPolicyAsync(const CreateTrafficPolicyRequestT& request, const CreateTrafficPolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::CreateTrafficPolicy, request, handler, context); + } + + /** + *

    Deletes an Add On instance.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteAddonInstanceOutcome DeleteAddonInstance(const Model::DeleteAddonInstanceRequest& request) const; + + /** + * A Callable wrapper for DeleteAddonInstance that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteAddonInstanceOutcomeCallable DeleteAddonInstanceCallable(const DeleteAddonInstanceRequestT& request) const + { + return SubmitCallable(&MailManagerClient::DeleteAddonInstance, request); + } + + /** + * An Async wrapper for DeleteAddonInstance that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteAddonInstanceAsync(const DeleteAddonInstanceRequestT& request, const DeleteAddonInstanceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::DeleteAddonInstance, request, handler, context); + } + + /** + *

    Deletes an Add On subscription.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteAddonSubscriptionOutcome DeleteAddonSubscription(const Model::DeleteAddonSubscriptionRequest& request) const; + + /** + * A Callable wrapper for DeleteAddonSubscription that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteAddonSubscriptionOutcomeCallable DeleteAddonSubscriptionCallable(const DeleteAddonSubscriptionRequestT& request) const + { + return SubmitCallable(&MailManagerClient::DeleteAddonSubscription, request); + } + + /** + * An Async wrapper for DeleteAddonSubscription that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteAddonSubscriptionAsync(const DeleteAddonSubscriptionRequestT& request, const DeleteAddonSubscriptionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::DeleteAddonSubscription, request, handler, context); + } + + /** + *

    Initiates deletion of an email archive. This changes the archive state to + * pending deletion. In this state, no new emails can be added, and existing + * archived emails become inaccessible (search, export, download). The archive and + * all of its contents will be permanently deleted 30 days after entering the + * pending deletion state, regardless of the configured retention period. + *

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteArchiveOutcome DeleteArchive(const Model::DeleteArchiveRequest& request) const; + + /** + * A Callable wrapper for DeleteArchive that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteArchiveOutcomeCallable DeleteArchiveCallable(const DeleteArchiveRequestT& request) const + { + return SubmitCallable(&MailManagerClient::DeleteArchive, request); + } + + /** + * An Async wrapper for DeleteArchive that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteArchiveAsync(const DeleteArchiveRequestT& request, const DeleteArchiveResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::DeleteArchive, request, handler, context); + } + + /** + *

    Delete an ingress endpoint resource.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteIngressPointOutcome DeleteIngressPoint(const Model::DeleteIngressPointRequest& request) const; + + /** + * A Callable wrapper for DeleteIngressPoint that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteIngressPointOutcomeCallable DeleteIngressPointCallable(const DeleteIngressPointRequestT& request) const + { + return SubmitCallable(&MailManagerClient::DeleteIngressPoint, request); + } + + /** + * An Async wrapper for DeleteIngressPoint that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteIngressPointAsync(const DeleteIngressPointRequestT& request, const DeleteIngressPointResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::DeleteIngressPoint, request, handler, context); + } + + /** + *

    Deletes an existing relay resource.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteRelayOutcome DeleteRelay(const Model::DeleteRelayRequest& request) const; + + /** + * A Callable wrapper for DeleteRelay that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteRelayOutcomeCallable DeleteRelayCallable(const DeleteRelayRequestT& request) const + { + return SubmitCallable(&MailManagerClient::DeleteRelay, request); + } + + /** + * An Async wrapper for DeleteRelay that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteRelayAsync(const DeleteRelayRequestT& request, const DeleteRelayResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::DeleteRelay, request, handler, context); + } + + /** + *

    Delete a rule set.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteRuleSetOutcome DeleteRuleSet(const Model::DeleteRuleSetRequest& request) const; + + /** + * A Callable wrapper for DeleteRuleSet that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteRuleSetOutcomeCallable DeleteRuleSetCallable(const DeleteRuleSetRequestT& request) const + { + return SubmitCallable(&MailManagerClient::DeleteRuleSet, request); + } + + /** + * An Async wrapper for DeleteRuleSet that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteRuleSetAsync(const DeleteRuleSetRequestT& request, const DeleteRuleSetResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::DeleteRuleSet, request, handler, context); + } + + /** + *

    Delete a traffic policy resource.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteTrafficPolicyOutcome DeleteTrafficPolicy(const Model::DeleteTrafficPolicyRequest& request) const; + + /** + * A Callable wrapper for DeleteTrafficPolicy that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteTrafficPolicyOutcomeCallable DeleteTrafficPolicyCallable(const DeleteTrafficPolicyRequestT& request) const + { + return SubmitCallable(&MailManagerClient::DeleteTrafficPolicy, request); + } + + /** + * An Async wrapper for DeleteTrafficPolicy that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteTrafficPolicyAsync(const DeleteTrafficPolicyRequestT& request, const DeleteTrafficPolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::DeleteTrafficPolicy, request, handler, context); + } + + /** + *

    Gets detailed information about an Add On instance.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::GetAddonInstanceOutcome GetAddonInstance(const Model::GetAddonInstanceRequest& request) const; + + /** + * A Callable wrapper for GetAddonInstance that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetAddonInstanceOutcomeCallable GetAddonInstanceCallable(const GetAddonInstanceRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetAddonInstance, request); + } + + /** + * An Async wrapper for GetAddonInstance that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetAddonInstanceAsync(const GetAddonInstanceRequestT& request, const GetAddonInstanceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetAddonInstance, request, handler, context); + } + + /** + *

    Gets detailed information about an Add On subscription.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::GetAddonSubscriptionOutcome GetAddonSubscription(const Model::GetAddonSubscriptionRequest& request) const; + + /** + * A Callable wrapper for GetAddonSubscription that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetAddonSubscriptionOutcomeCallable GetAddonSubscriptionCallable(const GetAddonSubscriptionRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetAddonSubscription, request); + } + + /** + * An Async wrapper for GetAddonSubscription that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetAddonSubscriptionAsync(const GetAddonSubscriptionRequestT& request, const GetAddonSubscriptionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetAddonSubscription, request, handler, context); + } + + /** + *

    Retrieves the full details and current state of a specified email + * archive.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetArchiveOutcome GetArchive(const Model::GetArchiveRequest& request) const; + + /** + * A Callable wrapper for GetArchive that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetArchiveOutcomeCallable GetArchiveCallable(const GetArchiveRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetArchive, request); + } + + /** + * An Async wrapper for GetArchive that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetArchiveAsync(const GetArchiveRequestT& request, const GetArchiveResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetArchive, request, handler, context); + } + + /** + *

    Retrieves the details and current status of a specific email archive export + * job.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetArchiveExportOutcome GetArchiveExport(const Model::GetArchiveExportRequest& request) const; + + /** + * A Callable wrapper for GetArchiveExport that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetArchiveExportOutcomeCallable GetArchiveExportCallable(const GetArchiveExportRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetArchiveExport, request); + } + + /** + * An Async wrapper for GetArchiveExport that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetArchiveExportAsync(const GetArchiveExportRequestT& request, const GetArchiveExportResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetArchiveExport, request, handler, context); + } + + /** + *

    Returns a pre-signed URL that provides temporary download access to the + * specific email message stored in the archive.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetArchiveMessageOutcome GetArchiveMessage(const Model::GetArchiveMessageRequest& request) const; + + /** + * A Callable wrapper for GetArchiveMessage that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetArchiveMessageOutcomeCallable GetArchiveMessageCallable(const GetArchiveMessageRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetArchiveMessage, request); + } + + /** + * An Async wrapper for GetArchiveMessage that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetArchiveMessageAsync(const GetArchiveMessageRequestT& request, const GetArchiveMessageResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetArchiveMessage, request, handler, context); + } + + /** + *

    Returns the textual content of a specific email message stored in the + * archive. Attachments are not included.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetArchiveMessageContentOutcome GetArchiveMessageContent(const Model::GetArchiveMessageContentRequest& request) const; + + /** + * A Callable wrapper for GetArchiveMessageContent that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetArchiveMessageContentOutcomeCallable GetArchiveMessageContentCallable(const GetArchiveMessageContentRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetArchiveMessageContent, request); + } + + /** + * An Async wrapper for GetArchiveMessageContent that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetArchiveMessageContentAsync(const GetArchiveMessageContentRequestT& request, const GetArchiveMessageContentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetArchiveMessageContent, request, handler, context); + } + + /** + *

    Retrieves the details and current status of a specific email archive search + * job.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetArchiveSearchOutcome GetArchiveSearch(const Model::GetArchiveSearchRequest& request) const; + + /** + * A Callable wrapper for GetArchiveSearch that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetArchiveSearchOutcomeCallable GetArchiveSearchCallable(const GetArchiveSearchRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetArchiveSearch, request); + } + + /** + * An Async wrapper for GetArchiveSearch that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetArchiveSearchAsync(const GetArchiveSearchRequestT& request, const GetArchiveSearchResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetArchiveSearch, request, handler, context); + } + + /** + *

    Returns the results of a completed email archive search job.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::GetArchiveSearchResultsOutcome GetArchiveSearchResults(const Model::GetArchiveSearchResultsRequest& request) const; + + /** + * A Callable wrapper for GetArchiveSearchResults that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetArchiveSearchResultsOutcomeCallable GetArchiveSearchResultsCallable(const GetArchiveSearchResultsRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetArchiveSearchResults, request); + } + + /** + * An Async wrapper for GetArchiveSearchResults that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetArchiveSearchResultsAsync(const GetArchiveSearchResultsRequestT& request, const GetArchiveSearchResultsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetArchiveSearchResults, request, handler, context); + } + + /** + *

    Fetch ingress endpoint resource attributes.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetIngressPointOutcome GetIngressPoint(const Model::GetIngressPointRequest& request) const; + + /** + * A Callable wrapper for GetIngressPoint that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetIngressPointOutcomeCallable GetIngressPointCallable(const GetIngressPointRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetIngressPoint, request); + } + + /** + * An Async wrapper for GetIngressPoint that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetIngressPointAsync(const GetIngressPointRequestT& request, const GetIngressPointResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetIngressPoint, request, handler, context); + } + + /** + *

    Fetch the relay resource and it's attributes.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetRelayOutcome GetRelay(const Model::GetRelayRequest& request) const; + + /** + * A Callable wrapper for GetRelay that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetRelayOutcomeCallable GetRelayCallable(const GetRelayRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetRelay, request); + } + + /** + * An Async wrapper for GetRelay that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetRelayAsync(const GetRelayRequestT& request, const GetRelayResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetRelay, request, handler, context); + } + + /** + *

    Fetch attributes of a rule set.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetRuleSetOutcome GetRuleSet(const Model::GetRuleSetRequest& request) const; + + /** + * A Callable wrapper for GetRuleSet that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetRuleSetOutcomeCallable GetRuleSetCallable(const GetRuleSetRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetRuleSet, request); + } + + /** + * An Async wrapper for GetRuleSet that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetRuleSetAsync(const GetRuleSetRequestT& request, const GetRuleSetResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetRuleSet, request, handler, context); + } + + /** + *

    Fetch attributes of a traffic policy resource.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetTrafficPolicyOutcome GetTrafficPolicy(const Model::GetTrafficPolicyRequest& request) const; + + /** + * A Callable wrapper for GetTrafficPolicy that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetTrafficPolicyOutcomeCallable GetTrafficPolicyCallable(const GetTrafficPolicyRequestT& request) const + { + return SubmitCallable(&MailManagerClient::GetTrafficPolicy, request); + } + + /** + * An Async wrapper for GetTrafficPolicy that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetTrafficPolicyAsync(const GetTrafficPolicyRequestT& request, const GetTrafficPolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::GetTrafficPolicy, request, handler, context); + } + + /** + *

    Lists all Add On instances in your account.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListAddonInstancesOutcome ListAddonInstances(const Model::ListAddonInstancesRequest& request) const; + + /** + * A Callable wrapper for ListAddonInstances that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAddonInstancesOutcomeCallable ListAddonInstancesCallable(const ListAddonInstancesRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListAddonInstances, request); + } + + /** + * An Async wrapper for ListAddonInstances that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAddonInstancesAsync(const ListAddonInstancesRequestT& request, const ListAddonInstancesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListAddonInstances, request, handler, context); + } + + /** + *

    Lists all Add On subscriptions in your account.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListAddonSubscriptionsOutcome ListAddonSubscriptions(const Model::ListAddonSubscriptionsRequest& request) const; + + /** + * A Callable wrapper for ListAddonSubscriptions that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAddonSubscriptionsOutcomeCallable ListAddonSubscriptionsCallable(const ListAddonSubscriptionsRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListAddonSubscriptions, request); + } + + /** + * An Async wrapper for ListAddonSubscriptions that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAddonSubscriptionsAsync(const ListAddonSubscriptionsRequestT& request, const ListAddonSubscriptionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListAddonSubscriptions, request, handler, context); + } + + /** + *

    Returns a list of email archive export jobs.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListArchiveExportsOutcome ListArchiveExports(const Model::ListArchiveExportsRequest& request) const; + + /** + * A Callable wrapper for ListArchiveExports that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListArchiveExportsOutcomeCallable ListArchiveExportsCallable(const ListArchiveExportsRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListArchiveExports, request); + } + + /** + * An Async wrapper for ListArchiveExports that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListArchiveExportsAsync(const ListArchiveExportsRequestT& request, const ListArchiveExportsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListArchiveExports, request, handler, context); + } + + /** + *

    Returns a list of email archive search jobs.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListArchiveSearchesOutcome ListArchiveSearches(const Model::ListArchiveSearchesRequest& request) const; + + /** + * A Callable wrapper for ListArchiveSearches that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListArchiveSearchesOutcomeCallable ListArchiveSearchesCallable(const ListArchiveSearchesRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListArchiveSearches, request); + } + + /** + * An Async wrapper for ListArchiveSearches that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListArchiveSearchesAsync(const ListArchiveSearchesRequestT& request, const ListArchiveSearchesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListArchiveSearches, request, handler, context); + } + + /** + *

    Returns a list of all email archives in your account.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::ListArchivesOutcome ListArchives(const Model::ListArchivesRequest& request) const; + + /** + * A Callable wrapper for ListArchives that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListArchivesOutcomeCallable ListArchivesCallable(const ListArchivesRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListArchives, request); + } + + /** + * An Async wrapper for ListArchives that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListArchivesAsync(const ListArchivesRequestT& request, const ListArchivesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListArchives, request, handler, context); + } + + /** + *

    List all ingress endpoint resources.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListIngressPointsOutcome ListIngressPoints(const Model::ListIngressPointsRequest& request) const; + + /** + * A Callable wrapper for ListIngressPoints that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListIngressPointsOutcomeCallable ListIngressPointsCallable(const ListIngressPointsRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListIngressPoints, request); + } + + /** + * An Async wrapper for ListIngressPoints that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListIngressPointsAsync(const ListIngressPointsRequestT& request, const ListIngressPointsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListIngressPoints, request, handler, context); + } + + /** + *

    Lists all the existing relay resources.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListRelaysOutcome ListRelays(const Model::ListRelaysRequest& request) const; + + /** + * A Callable wrapper for ListRelays that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListRelaysOutcomeCallable ListRelaysCallable(const ListRelaysRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListRelays, request); + } + + /** + * An Async wrapper for ListRelays that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListRelaysAsync(const ListRelaysRequestT& request, const ListRelaysResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListRelays, request, handler, context); + } + + /** + *

    List rule sets for this account.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListRuleSetsOutcome ListRuleSets(const Model::ListRuleSetsRequest& request) const; + + /** + * A Callable wrapper for ListRuleSets that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListRuleSetsOutcomeCallable ListRuleSetsCallable(const ListRuleSetsRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListRuleSets, request); + } + + /** + * An Async wrapper for ListRuleSets that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListRuleSetsAsync(const ListRuleSetsRequestT& request, const ListRuleSetsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListRuleSets, request, handler, context); + } + + /** + *

    Retrieves the list of tags (keys and values) assigned to the resource. + *

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const; + + /** + * A Callable wrapper for ListTagsForResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const ListTagsForResourceRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListTagsForResource, request); + } + + /** + * An Async wrapper for ListTagsForResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListTagsForResourceAsync(const ListTagsForResourceRequestT& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListTagsForResource, request, handler, context); + } + + /** + *

    List traffic policy resources.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListTrafficPoliciesOutcome ListTrafficPolicies(const Model::ListTrafficPoliciesRequest& request) const; + + /** + * A Callable wrapper for ListTrafficPolicies that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListTrafficPoliciesOutcomeCallable ListTrafficPoliciesCallable(const ListTrafficPoliciesRequestT& request) const + { + return SubmitCallable(&MailManagerClient::ListTrafficPolicies, request); + } + + /** + * An Async wrapper for ListTrafficPolicies that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListTrafficPoliciesAsync(const ListTrafficPoliciesRequestT& request, const ListTrafficPoliciesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::ListTrafficPolicies, request, handler, context); + } + + /** + *

    Initiates an export of emails from the specified archive.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::StartArchiveExportOutcome StartArchiveExport(const Model::StartArchiveExportRequest& request) const; + + /** + * A Callable wrapper for StartArchiveExport that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartArchiveExportOutcomeCallable StartArchiveExportCallable(const StartArchiveExportRequestT& request) const + { + return SubmitCallable(&MailManagerClient::StartArchiveExport, request); + } + + /** + * An Async wrapper for StartArchiveExport that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartArchiveExportAsync(const StartArchiveExportRequestT& request, const StartArchiveExportResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::StartArchiveExport, request, handler, context); + } + + /** + *

    Initiates a search across emails in the specified archive.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::StartArchiveSearchOutcome StartArchiveSearch(const Model::StartArchiveSearchRequest& request) const; + + /** + * A Callable wrapper for StartArchiveSearch that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StartArchiveSearchOutcomeCallable StartArchiveSearchCallable(const StartArchiveSearchRequestT& request) const + { + return SubmitCallable(&MailManagerClient::StartArchiveSearch, request); + } + + /** + * An Async wrapper for StartArchiveSearch that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StartArchiveSearchAsync(const StartArchiveSearchRequestT& request, const StartArchiveSearchResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::StartArchiveSearch, request, handler, context); + } + + /** + *

    Stops an in-progress export of emails from an archive.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::StopArchiveExportOutcome StopArchiveExport(const Model::StopArchiveExportRequest& request) const; + + /** + * A Callable wrapper for StopArchiveExport that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StopArchiveExportOutcomeCallable StopArchiveExportCallable(const StopArchiveExportRequestT& request) const + { + return SubmitCallable(&MailManagerClient::StopArchiveExport, request); + } + + /** + * An Async wrapper for StopArchiveExport that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StopArchiveExportAsync(const StopArchiveExportRequestT& request, const StopArchiveExportResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::StopArchiveExport, request, handler, context); + } + + /** + *

    Stops an in-progress archive search job.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::StopArchiveSearchOutcome StopArchiveSearch(const Model::StopArchiveSearchRequest& request) const; + + /** + * A Callable wrapper for StopArchiveSearch that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::StopArchiveSearchOutcomeCallable StopArchiveSearchCallable(const StopArchiveSearchRequestT& request) const + { + return SubmitCallable(&MailManagerClient::StopArchiveSearch, request); + } + + /** + * An Async wrapper for StopArchiveSearch that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void StopArchiveSearchAsync(const StopArchiveSearchRequestT& request, const StopArchiveSearchResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::StopArchiveSearch, request, handler, context); + } + + /** + *

    Adds one or more tags (keys and values) to a specified resource. + *

    See Also:

    AWS + * API Reference

    + */ + virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const; + + /** + * A Callable wrapper for TagResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::TagResourceOutcomeCallable TagResourceCallable(const TagResourceRequestT& request) const + { + return SubmitCallable(&MailManagerClient::TagResource, request); + } + + /** + * An Async wrapper for TagResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void TagResourceAsync(const TagResourceRequestT& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::TagResource, request, handler, context); + } + + /** + *

    Remove one or more tags (keys and values) from a specified resource. + *

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const; + + /** + * A Callable wrapper for UntagResource that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UntagResourceOutcomeCallable UntagResourceCallable(const UntagResourceRequestT& request) const + { + return SubmitCallable(&MailManagerClient::UntagResource, request); + } + + /** + * An Async wrapper for UntagResource that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UntagResourceAsync(const UntagResourceRequestT& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::UntagResource, request, handler, context); + } + + /** + *

    Updates the attributes of an existing email archive.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::UpdateArchiveOutcome UpdateArchive(const Model::UpdateArchiveRequest& request) const; + + /** + * A Callable wrapper for UpdateArchive that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateArchiveOutcomeCallable UpdateArchiveCallable(const UpdateArchiveRequestT& request) const + { + return SubmitCallable(&MailManagerClient::UpdateArchive, request); + } + + /** + * An Async wrapper for UpdateArchive that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateArchiveAsync(const UpdateArchiveRequestT& request, const UpdateArchiveResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::UpdateArchive, request, handler, context); + } + + /** + *

    Update attributes of a provisioned ingress endpoint resource.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateIngressPointOutcome UpdateIngressPoint(const Model::UpdateIngressPointRequest& request) const; + + /** + * A Callable wrapper for UpdateIngressPoint that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateIngressPointOutcomeCallable UpdateIngressPointCallable(const UpdateIngressPointRequestT& request) const + { + return SubmitCallable(&MailManagerClient::UpdateIngressPoint, request); + } + + /** + * An Async wrapper for UpdateIngressPoint that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateIngressPointAsync(const UpdateIngressPointRequestT& request, const UpdateIngressPointResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::UpdateIngressPoint, request, handler, context); + } + + /** + *

    Updates the attributes of an existing relay resource.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateRelayOutcome UpdateRelay(const Model::UpdateRelayRequest& request) const; + + /** + * A Callable wrapper for UpdateRelay that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateRelayOutcomeCallable UpdateRelayCallable(const UpdateRelayRequestT& request) const + { + return SubmitCallable(&MailManagerClient::UpdateRelay, request); + } + + /** + * An Async wrapper for UpdateRelay that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateRelayAsync(const UpdateRelayRequestT& request, const UpdateRelayResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::UpdateRelay, request, handler, context); + } + + /** + *

    >Update attributes of an already provisioned rule set.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateRuleSetOutcome UpdateRuleSet(const Model::UpdateRuleSetRequest& request) const; + + /** + * A Callable wrapper for UpdateRuleSet that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateRuleSetOutcomeCallable UpdateRuleSetCallable(const UpdateRuleSetRequestT& request) const + { + return SubmitCallable(&MailManagerClient::UpdateRuleSet, request); + } + + /** + * An Async wrapper for UpdateRuleSet that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateRuleSetAsync(const UpdateRuleSetRequestT& request, const UpdateRuleSetResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::UpdateRuleSet, request, handler, context); + } + + /** + *

    Update attributes of an already provisioned traffic policy + * resource.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateTrafficPolicyOutcome UpdateTrafficPolicy(const Model::UpdateTrafficPolicyRequest& request) const; + + /** + * A Callable wrapper for UpdateTrafficPolicy that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateTrafficPolicyOutcomeCallable UpdateTrafficPolicyCallable(const UpdateTrafficPolicyRequestT& request) const + { + return SubmitCallable(&MailManagerClient::UpdateTrafficPolicy, request); + } + + /** + * An Async wrapper for UpdateTrafficPolicy that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateTrafficPolicyAsync(const UpdateTrafficPolicyRequestT& request, const UpdateTrafficPolicyResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&MailManagerClient::UpdateTrafficPolicy, request, handler, context); + } + + + void OverrideEndpoint(const Aws::String& endpoint); + std::shared_ptr& accessEndpointProvider(); + private: + friend class Aws::Client::ClientWithAsyncTemplateMethods; + void init(const MailManagerClientConfiguration& clientConfiguration); + + MailManagerClientConfiguration m_clientConfiguration; + std::shared_ptr m_executor; + std::shared_ptr m_endpointProvider; + }; + +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerEndpointProvider.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerEndpointProvider.h new file mode 100644 index 00000000000..561e57c8a94 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerEndpointProvider.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +#include + + +namespace Aws +{ +namespace MailManager +{ +namespace Endpoint +{ +using EndpointParameters = Aws::Endpoint::EndpointParameters; +using Aws::Endpoint::EndpointProviderBase; +using Aws::Endpoint::DefaultEndpointProvider; + +using MailManagerClientContextParameters = Aws::Endpoint::ClientContextParameters; + +using MailManagerClientConfiguration = Aws::Client::GenericClientConfiguration; +using MailManagerBuiltInParameters = Aws::Endpoint::BuiltInParameters; + +/** + * The type for the MailManager Client Endpoint Provider. + * Inherit from this Base class / "Interface" should you want to provide a custom endpoint provider. + * The SDK must use service-specific type for each service per specification. + */ +using MailManagerEndpointProviderBase = + EndpointProviderBase; + +using MailManagerDefaultEpProviderBase = + DefaultEndpointProvider; + +/** + * Default endpoint provider used for this service + */ +class AWS_MAILMANAGER_API MailManagerEndpointProvider : public MailManagerDefaultEpProviderBase +{ +public: + using MailManagerResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + + MailManagerEndpointProvider() + : MailManagerDefaultEpProviderBase(Aws::MailManager::MailManagerEndpointRules::GetRulesBlob(), Aws::MailManager::MailManagerEndpointRules::RulesBlobSize) + {} + + ~MailManagerEndpointProvider() + { + } +}; +} // namespace Endpoint +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerEndpointRules.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerEndpointRules.h new file mode 100644 index 00000000000..92c5f2e7d41 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerEndpointRules.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +class MailManagerEndpointRules +{ +public: + static const size_t RulesBlobStrLen; + static const size_t RulesBlobSize; + + static const char* GetRulesBlob(); +}; +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerErrorMarshaller.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerErrorMarshaller.h new file mode 100644 index 00000000000..edda7b96bec --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerErrorMarshaller.h @@ -0,0 +1,23 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include + +namespace Aws +{ +namespace Client +{ + +class AWS_MAILMANAGER_API MailManagerErrorMarshaller : public Aws::Client::JsonErrorMarshaller +{ +public: + Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; +}; + +} // namespace Client +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerErrors.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerErrors.h new file mode 100644 index 00000000000..95e06da569a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerErrors.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +enum class MailManagerErrors +{ + //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, + /////////////////////////////////////////////////////////////////////////////////////////// + + CONFLICT= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, + SERVICE_QUOTA_EXCEEDED +}; + +class AWS_MAILMANAGER_API MailManagerError : public Aws::Client::AWSError +{ +public: + MailManagerError() {} + MailManagerError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + MailManagerError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + MailManagerError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} + MailManagerError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} + + template + T GetModeledError(); +}; + +namespace MailManagerErrorMapper +{ + AWS_MAILMANAGER_API Aws::Client::AWSError GetErrorForName(const char* errorName); +} + +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerRequest.h new file mode 100644 index 00000000000..498a15bbf9b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerRequest.h @@ -0,0 +1,46 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ + class AWS_MAILMANAGER_API MailManagerRequest : public Aws::AmazonSerializableWebServiceRequest + { + public: + using EndpointParameter = Aws::Endpoint::EndpointParameter; + using EndpointParameters = Aws::Endpoint::EndpointParameters; + + virtual ~MailManagerRequest () {} + + 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_0 )); + } + headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2023-10-17")); + return headers; + } + + protected: + virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } + + }; + + +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerServiceClientModel.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerServiceClientModel.h new file mode 100644 index 00000000000..662881924f9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManagerServiceClientModel.h @@ -0,0 +1,310 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once + +/* Generic header includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +/* End of generic header includes */ + +/* Service model headers required in MailManagerClient header */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +/* End of service model headers required in MailManagerClient header */ + +namespace Aws +{ + namespace Http + { + class HttpClient; + class HttpClientFactory; + } // namespace Http + + namespace Utils + { + template< typename R, typename E> class Outcome; + + namespace Threading + { + class Executor; + } // namespace Threading + } // namespace Utils + + namespace Auth + { + class AWSCredentials; + class AWSCredentialsProvider; + } // namespace Auth + + namespace Client + { + class RetryStrategy; + } // namespace Client + + namespace MailManager + { + using MailManagerClientConfiguration = Aws::Client::GenericClientConfiguration; + using MailManagerEndpointProviderBase = Aws::MailManager::Endpoint::MailManagerEndpointProviderBase; + using MailManagerEndpointProvider = Aws::MailManager::Endpoint::MailManagerEndpointProvider; + + namespace Model + { + /* Service model forward declarations required in MailManagerClient header */ + class CreateAddonInstanceRequest; + class CreateAddonSubscriptionRequest; + class CreateArchiveRequest; + class CreateIngressPointRequest; + class CreateRelayRequest; + class CreateRuleSetRequest; + class CreateTrafficPolicyRequest; + class DeleteAddonInstanceRequest; + class DeleteAddonSubscriptionRequest; + class DeleteArchiveRequest; + class DeleteIngressPointRequest; + class DeleteRelayRequest; + class DeleteRuleSetRequest; + class DeleteTrafficPolicyRequest; + class GetAddonInstanceRequest; + class GetAddonSubscriptionRequest; + class GetArchiveRequest; + class GetArchiveExportRequest; + class GetArchiveMessageRequest; + class GetArchiveMessageContentRequest; + class GetArchiveSearchRequest; + class GetArchiveSearchResultsRequest; + class GetIngressPointRequest; + class GetRelayRequest; + class GetRuleSetRequest; + class GetTrafficPolicyRequest; + class ListAddonInstancesRequest; + class ListAddonSubscriptionsRequest; + class ListArchiveExportsRequest; + class ListArchiveSearchesRequest; + class ListArchivesRequest; + class ListIngressPointsRequest; + class ListRelaysRequest; + class ListRuleSetsRequest; + class ListTagsForResourceRequest; + class ListTrafficPoliciesRequest; + class StartArchiveExportRequest; + class StartArchiveSearchRequest; + class StopArchiveExportRequest; + class StopArchiveSearchRequest; + class TagResourceRequest; + class UntagResourceRequest; + class UpdateArchiveRequest; + class UpdateIngressPointRequest; + class UpdateRelayRequest; + class UpdateRuleSetRequest; + class UpdateTrafficPolicyRequest; + /* End of service model forward declarations required in MailManagerClient header */ + + /* Service model Outcome class definitions */ + typedef Aws::Utils::Outcome CreateAddonInstanceOutcome; + typedef Aws::Utils::Outcome CreateAddonSubscriptionOutcome; + typedef Aws::Utils::Outcome CreateArchiveOutcome; + typedef Aws::Utils::Outcome CreateIngressPointOutcome; + typedef Aws::Utils::Outcome CreateRelayOutcome; + typedef Aws::Utils::Outcome CreateRuleSetOutcome; + typedef Aws::Utils::Outcome CreateTrafficPolicyOutcome; + typedef Aws::Utils::Outcome DeleteAddonInstanceOutcome; + typedef Aws::Utils::Outcome DeleteAddonSubscriptionOutcome; + typedef Aws::Utils::Outcome DeleteArchiveOutcome; + typedef Aws::Utils::Outcome DeleteIngressPointOutcome; + typedef Aws::Utils::Outcome DeleteRelayOutcome; + typedef Aws::Utils::Outcome DeleteRuleSetOutcome; + typedef Aws::Utils::Outcome DeleteTrafficPolicyOutcome; + typedef Aws::Utils::Outcome GetAddonInstanceOutcome; + typedef Aws::Utils::Outcome GetAddonSubscriptionOutcome; + typedef Aws::Utils::Outcome GetArchiveOutcome; + typedef Aws::Utils::Outcome GetArchiveExportOutcome; + typedef Aws::Utils::Outcome GetArchiveMessageOutcome; + typedef Aws::Utils::Outcome GetArchiveMessageContentOutcome; + typedef Aws::Utils::Outcome GetArchiveSearchOutcome; + typedef Aws::Utils::Outcome GetArchiveSearchResultsOutcome; + typedef Aws::Utils::Outcome GetIngressPointOutcome; + typedef Aws::Utils::Outcome GetRelayOutcome; + typedef Aws::Utils::Outcome GetRuleSetOutcome; + typedef Aws::Utils::Outcome GetTrafficPolicyOutcome; + typedef Aws::Utils::Outcome ListAddonInstancesOutcome; + typedef Aws::Utils::Outcome ListAddonSubscriptionsOutcome; + typedef Aws::Utils::Outcome ListArchiveExportsOutcome; + typedef Aws::Utils::Outcome ListArchiveSearchesOutcome; + typedef Aws::Utils::Outcome ListArchivesOutcome; + typedef Aws::Utils::Outcome ListIngressPointsOutcome; + typedef Aws::Utils::Outcome ListRelaysOutcome; + typedef Aws::Utils::Outcome ListRuleSetsOutcome; + typedef Aws::Utils::Outcome ListTagsForResourceOutcome; + typedef Aws::Utils::Outcome ListTrafficPoliciesOutcome; + typedef Aws::Utils::Outcome StartArchiveExportOutcome; + typedef Aws::Utils::Outcome StartArchiveSearchOutcome; + typedef Aws::Utils::Outcome StopArchiveExportOutcome; + typedef Aws::Utils::Outcome StopArchiveSearchOutcome; + typedef Aws::Utils::Outcome TagResourceOutcome; + typedef Aws::Utils::Outcome UntagResourceOutcome; + typedef Aws::Utils::Outcome UpdateArchiveOutcome; + typedef Aws::Utils::Outcome UpdateIngressPointOutcome; + typedef Aws::Utils::Outcome UpdateRelayOutcome; + typedef Aws::Utils::Outcome UpdateRuleSetOutcome; + typedef Aws::Utils::Outcome UpdateTrafficPolicyOutcome; + /* End of service model Outcome class definitions */ + + /* Service model Outcome callable definitions */ + typedef std::future CreateAddonInstanceOutcomeCallable; + typedef std::future CreateAddonSubscriptionOutcomeCallable; + typedef std::future CreateArchiveOutcomeCallable; + typedef std::future CreateIngressPointOutcomeCallable; + typedef std::future CreateRelayOutcomeCallable; + typedef std::future CreateRuleSetOutcomeCallable; + typedef std::future CreateTrafficPolicyOutcomeCallable; + typedef std::future DeleteAddonInstanceOutcomeCallable; + typedef std::future DeleteAddonSubscriptionOutcomeCallable; + typedef std::future DeleteArchiveOutcomeCallable; + typedef std::future DeleteIngressPointOutcomeCallable; + typedef std::future DeleteRelayOutcomeCallable; + typedef std::future DeleteRuleSetOutcomeCallable; + typedef std::future DeleteTrafficPolicyOutcomeCallable; + typedef std::future GetAddonInstanceOutcomeCallable; + typedef std::future GetAddonSubscriptionOutcomeCallable; + typedef std::future GetArchiveOutcomeCallable; + typedef std::future GetArchiveExportOutcomeCallable; + typedef std::future GetArchiveMessageOutcomeCallable; + typedef std::future GetArchiveMessageContentOutcomeCallable; + typedef std::future GetArchiveSearchOutcomeCallable; + typedef std::future GetArchiveSearchResultsOutcomeCallable; + typedef std::future GetIngressPointOutcomeCallable; + typedef std::future GetRelayOutcomeCallable; + typedef std::future GetRuleSetOutcomeCallable; + typedef std::future GetTrafficPolicyOutcomeCallable; + typedef std::future ListAddonInstancesOutcomeCallable; + typedef std::future ListAddonSubscriptionsOutcomeCallable; + typedef std::future ListArchiveExportsOutcomeCallable; + typedef std::future ListArchiveSearchesOutcomeCallable; + typedef std::future ListArchivesOutcomeCallable; + typedef std::future ListIngressPointsOutcomeCallable; + typedef std::future ListRelaysOutcomeCallable; + typedef std::future ListRuleSetsOutcomeCallable; + typedef std::future ListTagsForResourceOutcomeCallable; + typedef std::future ListTrafficPoliciesOutcomeCallable; + typedef std::future StartArchiveExportOutcomeCallable; + typedef std::future StartArchiveSearchOutcomeCallable; + typedef std::future StopArchiveExportOutcomeCallable; + typedef std::future StopArchiveSearchOutcomeCallable; + typedef std::future TagResourceOutcomeCallable; + typedef std::future UntagResourceOutcomeCallable; + typedef std::future UpdateArchiveOutcomeCallable; + typedef std::future UpdateIngressPointOutcomeCallable; + typedef std::future UpdateRelayOutcomeCallable; + typedef std::future UpdateRuleSetOutcomeCallable; + typedef std::future UpdateTrafficPolicyOutcomeCallable; + /* End of service model Outcome callable definitions */ + } // namespace Model + + class MailManagerClient; + + /* Service model async handlers definitions */ + typedef std::function&) > CreateAddonInstanceResponseReceivedHandler; + typedef std::function&) > CreateAddonSubscriptionResponseReceivedHandler; + typedef std::function&) > CreateArchiveResponseReceivedHandler; + typedef std::function&) > CreateIngressPointResponseReceivedHandler; + typedef std::function&) > CreateRelayResponseReceivedHandler; + typedef std::function&) > CreateRuleSetResponseReceivedHandler; + typedef std::function&) > CreateTrafficPolicyResponseReceivedHandler; + typedef std::function&) > DeleteAddonInstanceResponseReceivedHandler; + typedef std::function&) > DeleteAddonSubscriptionResponseReceivedHandler; + typedef std::function&) > DeleteArchiveResponseReceivedHandler; + typedef std::function&) > DeleteIngressPointResponseReceivedHandler; + typedef std::function&) > DeleteRelayResponseReceivedHandler; + typedef std::function&) > DeleteRuleSetResponseReceivedHandler; + typedef std::function&) > DeleteTrafficPolicyResponseReceivedHandler; + typedef std::function&) > GetAddonInstanceResponseReceivedHandler; + typedef std::function&) > GetAddonSubscriptionResponseReceivedHandler; + typedef std::function&) > GetArchiveResponseReceivedHandler; + typedef std::function&) > GetArchiveExportResponseReceivedHandler; + typedef std::function&) > GetArchiveMessageResponseReceivedHandler; + typedef std::function&) > GetArchiveMessageContentResponseReceivedHandler; + typedef std::function&) > GetArchiveSearchResponseReceivedHandler; + typedef std::function&) > GetArchiveSearchResultsResponseReceivedHandler; + typedef std::function&) > GetIngressPointResponseReceivedHandler; + typedef std::function&) > GetRelayResponseReceivedHandler; + typedef std::function&) > GetRuleSetResponseReceivedHandler; + typedef std::function&) > GetTrafficPolicyResponseReceivedHandler; + typedef std::function&) > ListAddonInstancesResponseReceivedHandler; + typedef std::function&) > ListAddonSubscriptionsResponseReceivedHandler; + typedef std::function&) > ListArchiveExportsResponseReceivedHandler; + typedef std::function&) > ListArchiveSearchesResponseReceivedHandler; + typedef std::function&) > ListArchivesResponseReceivedHandler; + typedef std::function&) > ListIngressPointsResponseReceivedHandler; + typedef std::function&) > ListRelaysResponseReceivedHandler; + typedef std::function&) > ListRuleSetsResponseReceivedHandler; + typedef std::function&) > ListTagsForResourceResponseReceivedHandler; + typedef std::function&) > ListTrafficPoliciesResponseReceivedHandler; + typedef std::function&) > StartArchiveExportResponseReceivedHandler; + typedef std::function&) > StartArchiveSearchResponseReceivedHandler; + typedef std::function&) > StopArchiveExportResponseReceivedHandler; + typedef std::function&) > StopArchiveSearchResponseReceivedHandler; + typedef std::function&) > TagResourceResponseReceivedHandler; + typedef std::function&) > UntagResourceResponseReceivedHandler; + typedef std::function&) > UpdateArchiveResponseReceivedHandler; + typedef std::function&) > UpdateIngressPointResponseReceivedHandler; + typedef std::function&) > UpdateRelayResponseReceivedHandler; + typedef std::function&) > UpdateRuleSetResponseReceivedHandler; + typedef std::function&) > UpdateTrafficPolicyResponseReceivedHandler; + /* End of service model async handlers definitions */ + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManager_EXPORTS.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManager_EXPORTS.h new file mode 100644 index 00000000000..17e854c212d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/MailManager_EXPORTS.h @@ -0,0 +1,32 @@ +/** + * 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_MAILMANAGER_EXPORTS + #define AWS_MAILMANAGER_API __declspec(dllexport) + #else + #define AWS_MAILMANAGER_API __declspec(dllimport) + #endif /* AWS_MAILMANAGER_EXPORTS */ + #define AWS_MAILMANAGER_EXTERN + #else + #define AWS_MAILMANAGER_API + #define AWS_MAILMANAGER_EXTERN extern + #endif // USE_IMPORT_EXPORT +#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) + #define AWS_MAILMANAGER_API + #define AWS_MAILMANAGER_EXTERN extern +#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AcceptAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AcceptAction.h new file mode 100644 index 00000000000..7a0c3c11483 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AcceptAction.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class AcceptAction + { + NOT_SET, + ALLOW, + DENY + }; + +namespace AcceptActionMapper +{ +AWS_MAILMANAGER_API AcceptAction GetAcceptActionForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForAcceptAction(AcceptAction value); +} // namespace AcceptActionMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ActionFailurePolicy.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ActionFailurePolicy.h new file mode 100644 index 00000000000..f5430de8529 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ActionFailurePolicy.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class ActionFailurePolicy + { + NOT_SET, + CONTINUE, + DROP + }; + +namespace ActionFailurePolicyMapper +{ +AWS_MAILMANAGER_API ActionFailurePolicy GetActionFailurePolicyForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForActionFailurePolicy(ActionFailurePolicy value); +} // namespace ActionFailurePolicyMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddHeaderAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddHeaderAction.h new file mode 100644 index 00000000000..f1832045df0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddHeaderAction.h @@ -0,0 +1,149 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The action to add a header to a message. When executed, this action will add + * the given header to the message.

    See Also:

    AWS + * API Reference

    + */ + class AddHeaderAction + { + public: + AWS_MAILMANAGER_API AddHeaderAction(); + AWS_MAILMANAGER_API AddHeaderAction(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API AddHeaderAction& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The name of the header to add to an email. The header must be prefixed with + * "X-". Headers are added regardless of whether the header name pre-existed in the + * email.

    + */ + inline const Aws::String& GetHeaderName() const{ return m_headerName; } + + /** + *

    The name of the header to add to an email. The header must be prefixed with + * "X-". Headers are added regardless of whether the header name pre-existed in the + * email.

    + */ + inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; } + + /** + *

    The name of the header to add to an email. The header must be prefixed with + * "X-". Headers are added regardless of whether the header name pre-existed in the + * email.

    + */ + inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; } + + /** + *

    The name of the header to add to an email. The header must be prefixed with + * "X-". Headers are added regardless of whether the header name pre-existed in the + * email.

    + */ + inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); } + + /** + *

    The name of the header to add to an email. The header must be prefixed with + * "X-". Headers are added regardless of whether the header name pre-existed in the + * email.

    + */ + inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); } + + /** + *

    The name of the header to add to an email. The header must be prefixed with + * "X-". Headers are added regardless of whether the header name pre-existed in the + * email.

    + */ + inline AddHeaderAction& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;} + + /** + *

    The name of the header to add to an email. The header must be prefixed with + * "X-". Headers are added regardless of whether the header name pre-existed in the + * email.

    + */ + inline AddHeaderAction& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;} + + /** + *

    The name of the header to add to an email. The header must be prefixed with + * "X-". Headers are added regardless of whether the header name pre-existed in the + * email.

    + */ + inline AddHeaderAction& WithHeaderName(const char* value) { SetHeaderName(value); return *this;} + + + /** + *

    The value of the header to add to the email.

    + */ + inline const Aws::String& GetHeaderValue() const{ return m_headerValue; } + + /** + *

    The value of the header to add to the email.

    + */ + inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; } + + /** + *

    The value of the header to add to the email.

    + */ + inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; } + + /** + *

    The value of the header to add to the email.

    + */ + inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); } + + /** + *

    The value of the header to add to the email.

    + */ + inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); } + + /** + *

    The value of the header to add to the email.

    + */ + inline AddHeaderAction& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;} + + /** + *

    The value of the header to add to the email.

    + */ + inline AddHeaderAction& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;} + + /** + *

    The value of the header to add to the email.

    + */ + inline AddHeaderAction& WithHeaderValue(const char* value) { SetHeaderValue(value); return *this;} + + private: + + Aws::String m_headerName; + bool m_headerNameHasBeenSet = false; + + Aws::String m_headerValue; + bool m_headerValueHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddonInstance.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddonInstance.h new file mode 100644 index 00000000000..5b47d7d1fc4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddonInstance.h @@ -0,0 +1,256 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    An Add On instance represents a specific configuration of an Add + * On.

    See Also:

    AWS + * API Reference

    + */ + class AddonInstance + { + public: + AWS_MAILMANAGER_API AddonInstance(); + AWS_MAILMANAGER_API AddonInstance(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API AddonInstance& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline const Aws::String& GetAddonInstanceArn() const{ return m_addonInstanceArn; } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline bool AddonInstanceArnHasBeenSet() const { return m_addonInstanceArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline void SetAddonInstanceArn(const Aws::String& value) { m_addonInstanceArnHasBeenSet = true; m_addonInstanceArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline void SetAddonInstanceArn(Aws::String&& value) { m_addonInstanceArnHasBeenSet = true; m_addonInstanceArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline void SetAddonInstanceArn(const char* value) { m_addonInstanceArnHasBeenSet = true; m_addonInstanceArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline AddonInstance& WithAddonInstanceArn(const Aws::String& value) { SetAddonInstanceArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline AddonInstance& WithAddonInstanceArn(Aws::String&& value) { SetAddonInstanceArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline AddonInstance& WithAddonInstanceArn(const char* value) { SetAddonInstanceArn(value); return *this;} + + + /** + *

    The unique ID of the Add On instance.

    + */ + inline const Aws::String& GetAddonInstanceId() const{ return m_addonInstanceId; } + + /** + *

    The unique ID of the Add On instance.

    + */ + inline bool AddonInstanceIdHasBeenSet() const { return m_addonInstanceIdHasBeenSet; } + + /** + *

    The unique ID of the Add On instance.

    + */ + inline void SetAddonInstanceId(const Aws::String& value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId = value; } + + /** + *

    The unique ID of the Add On instance.

    + */ + inline void SetAddonInstanceId(Aws::String&& value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId = std::move(value); } + + /** + *

    The unique ID of the Add On instance.

    + */ + inline void SetAddonInstanceId(const char* value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId.assign(value); } + + /** + *

    The unique ID of the Add On instance.

    + */ + inline AddonInstance& WithAddonInstanceId(const Aws::String& value) { SetAddonInstanceId(value); return *this;} + + /** + *

    The unique ID of the Add On instance.

    + */ + inline AddonInstance& WithAddonInstanceId(Aws::String&& value) { SetAddonInstanceId(std::move(value)); return *this;} + + /** + *

    The unique ID of the Add On instance.

    + */ + inline AddonInstance& WithAddonInstanceId(const char* value) { SetAddonInstanceId(value); return *this;} + + + /** + *

    The name of the Add On for the instance.

    + */ + inline const Aws::String& GetAddonName() const{ return m_addonName; } + + /** + *

    The name of the Add On for the instance.

    + */ + inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; } + + /** + *

    The name of the Add On for the instance.

    + */ + inline void SetAddonName(const Aws::String& value) { m_addonNameHasBeenSet = true; m_addonName = value; } + + /** + *

    The name of the Add On for the instance.

    + */ + inline void SetAddonName(Aws::String&& value) { m_addonNameHasBeenSet = true; m_addonName = std::move(value); } + + /** + *

    The name of the Add On for the instance.

    + */ + inline void SetAddonName(const char* value) { m_addonNameHasBeenSet = true; m_addonName.assign(value); } + + /** + *

    The name of the Add On for the instance.

    + */ + inline AddonInstance& WithAddonName(const Aws::String& value) { SetAddonName(value); return *this;} + + /** + *

    The name of the Add On for the instance.

    + */ + inline AddonInstance& WithAddonName(Aws::String&& value) { SetAddonName(std::move(value)); return *this;} + + /** + *

    The name of the Add On for the instance.

    + */ + inline AddonInstance& WithAddonName(const char* value) { SetAddonName(value); return *this;} + + + /** + *

    The subscription ID for the instance.

    + */ + inline const Aws::String& GetAddonSubscriptionId() const{ return m_addonSubscriptionId; } + + /** + *

    The subscription ID for the instance.

    + */ + inline bool AddonSubscriptionIdHasBeenSet() const { return m_addonSubscriptionIdHasBeenSet; } + + /** + *

    The subscription ID for the instance.

    + */ + inline void SetAddonSubscriptionId(const Aws::String& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = value; } + + /** + *

    The subscription ID for the instance.

    + */ + inline void SetAddonSubscriptionId(Aws::String&& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = std::move(value); } + + /** + *

    The subscription ID for the instance.

    + */ + inline void SetAddonSubscriptionId(const char* value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId.assign(value); } + + /** + *

    The subscription ID for the instance.

    + */ + inline AddonInstance& WithAddonSubscriptionId(const Aws::String& value) { SetAddonSubscriptionId(value); return *this;} + + /** + *

    The subscription ID for the instance.

    + */ + inline AddonInstance& WithAddonSubscriptionId(Aws::String&& value) { SetAddonSubscriptionId(std::move(value)); return *this;} + + /** + *

    The subscription ID for the instance.

    + */ + inline AddonInstance& WithAddonSubscriptionId(const char* value) { SetAddonSubscriptionId(value); return *this;} + + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline AddonInstance& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline AddonInstance& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + + private: + + Aws::String m_addonInstanceArn; + bool m_addonInstanceArnHasBeenSet = false; + + Aws::String m_addonInstanceId; + bool m_addonInstanceIdHasBeenSet = false; + + Aws::String m_addonName; + bool m_addonNameHasBeenSet = false; + + Aws::String m_addonSubscriptionId; + bool m_addonSubscriptionIdHasBeenSet = false; + + Aws::Utils::DateTime m_createdTimestamp; + bool m_createdTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddonSubscription.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddonSubscription.h new file mode 100644 index 00000000000..bab0a44a139 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/AddonSubscription.h @@ -0,0 +1,212 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A subscription for an Add On representing the acceptance of its terms of use + * and additional pricing.

    See Also:

    AWS + * API Reference

    + */ + class AddonSubscription + { + public: + AWS_MAILMANAGER_API AddonSubscription(); + AWS_MAILMANAGER_API AddonSubscription(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API AddonSubscription& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The name of the Add On.

    + */ + inline const Aws::String& GetAddonName() const{ return m_addonName; } + + /** + *

    The name of the Add On.

    + */ + inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; } + + /** + *

    The name of the Add On.

    + */ + inline void SetAddonName(const Aws::String& value) { m_addonNameHasBeenSet = true; m_addonName = value; } + + /** + *

    The name of the Add On.

    + */ + inline void SetAddonName(Aws::String&& value) { m_addonNameHasBeenSet = true; m_addonName = std::move(value); } + + /** + *

    The name of the Add On.

    + */ + inline void SetAddonName(const char* value) { m_addonNameHasBeenSet = true; m_addonName.assign(value); } + + /** + *

    The name of the Add On.

    + */ + inline AddonSubscription& WithAddonName(const Aws::String& value) { SetAddonName(value); return *this;} + + /** + *

    The name of the Add On.

    + */ + inline AddonSubscription& WithAddonName(Aws::String&& value) { SetAddonName(std::move(value)); return *this;} + + /** + *

    The name of the Add On.

    + */ + inline AddonSubscription& WithAddonName(const char* value) { SetAddonName(value); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the Add On subscription.

    + */ + inline const Aws::String& GetAddonSubscriptionArn() const{ return m_addonSubscriptionArn; } + + /** + *

    The Amazon Resource Name (ARN) of the Add On subscription.

    + */ + inline bool AddonSubscriptionArnHasBeenSet() const { return m_addonSubscriptionArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the Add On subscription.

    + */ + inline void SetAddonSubscriptionArn(const Aws::String& value) { m_addonSubscriptionArnHasBeenSet = true; m_addonSubscriptionArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the Add On subscription.

    + */ + inline void SetAddonSubscriptionArn(Aws::String&& value) { m_addonSubscriptionArnHasBeenSet = true; m_addonSubscriptionArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the Add On subscription.

    + */ + inline void SetAddonSubscriptionArn(const char* value) { m_addonSubscriptionArnHasBeenSet = true; m_addonSubscriptionArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the Add On subscription.

    + */ + inline AddonSubscription& WithAddonSubscriptionArn(const Aws::String& value) { SetAddonSubscriptionArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the Add On subscription.

    + */ + inline AddonSubscription& WithAddonSubscriptionArn(Aws::String&& value) { SetAddonSubscriptionArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the Add On subscription.

    + */ + inline AddonSubscription& WithAddonSubscriptionArn(const char* value) { SetAddonSubscriptionArn(value); return *this;} + + + /** + *

    The unique ID of the Add On subscription.

    + */ + inline const Aws::String& GetAddonSubscriptionId() const{ return m_addonSubscriptionId; } + + /** + *

    The unique ID of the Add On subscription.

    + */ + inline bool AddonSubscriptionIdHasBeenSet() const { return m_addonSubscriptionIdHasBeenSet; } + + /** + *

    The unique ID of the Add On subscription.

    + */ + inline void SetAddonSubscriptionId(const Aws::String& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = value; } + + /** + *

    The unique ID of the Add On subscription.

    + */ + inline void SetAddonSubscriptionId(Aws::String&& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = std::move(value); } + + /** + *

    The unique ID of the Add On subscription.

    + */ + inline void SetAddonSubscriptionId(const char* value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId.assign(value); } + + /** + *

    The unique ID of the Add On subscription.

    + */ + inline AddonSubscription& WithAddonSubscriptionId(const Aws::String& value) { SetAddonSubscriptionId(value); return *this;} + + /** + *

    The unique ID of the Add On subscription.

    + */ + inline AddonSubscription& WithAddonSubscriptionId(Aws::String&& value) { SetAddonSubscriptionId(std::move(value)); return *this;} + + /** + *

    The unique ID of the Add On subscription.

    + */ + inline AddonSubscription& WithAddonSubscriptionId(const char* value) { SetAddonSubscriptionId(value); return *this;} + + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline AddonSubscription& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline AddonSubscription& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + + private: + + Aws::String m_addonName; + bool m_addonNameHasBeenSet = false; + + Aws::String m_addonSubscriptionArn; + bool m_addonSubscriptionArnHasBeenSet = false; + + Aws::String m_addonSubscriptionId; + bool m_addonSubscriptionIdHasBeenSet = false; + + Aws::Utils::DateTime m_createdTimestamp; + bool m_createdTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Analysis.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Analysis.h new file mode 100644 index 00000000000..2464d9bc06a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Analysis.h @@ -0,0 +1,134 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The result of an analysis can be used in conditions to trigger actions. + * Analyses can inspect the email content and report a certain aspect of the + * email.

    See Also:

    AWS + * API Reference

    + */ + class Analysis + { + public: + AWS_MAILMANAGER_API Analysis(); + AWS_MAILMANAGER_API Analysis(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Analysis& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline const Aws::String& GetAnalyzer() const{ return m_analyzer; } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline bool AnalyzerHasBeenSet() const { return m_analyzerHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline void SetAnalyzer(const Aws::String& value) { m_analyzerHasBeenSet = true; m_analyzer = value; } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline void SetAnalyzer(Aws::String&& value) { m_analyzerHasBeenSet = true; m_analyzer = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline void SetAnalyzer(const char* value) { m_analyzerHasBeenSet = true; m_analyzer.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline Analysis& WithAnalyzer(const Aws::String& value) { SetAnalyzer(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline Analysis& WithAnalyzer(Aws::String&& value) { SetAnalyzer(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline Analysis& WithAnalyzer(const char* value) { SetAnalyzer(value); return *this;} + + + /** + *

    The returned value from an Add On.

    + */ + inline const Aws::String& GetResultField() const{ return m_resultField; } + + /** + *

    The returned value from an Add On.

    + */ + inline bool ResultFieldHasBeenSet() const { return m_resultFieldHasBeenSet; } + + /** + *

    The returned value from an Add On.

    + */ + inline void SetResultField(const Aws::String& value) { m_resultFieldHasBeenSet = true; m_resultField = value; } + + /** + *

    The returned value from an Add On.

    + */ + inline void SetResultField(Aws::String&& value) { m_resultFieldHasBeenSet = true; m_resultField = std::move(value); } + + /** + *

    The returned value from an Add On.

    + */ + inline void SetResultField(const char* value) { m_resultFieldHasBeenSet = true; m_resultField.assign(value); } + + /** + *

    The returned value from an Add On.

    + */ + inline Analysis& WithResultField(const Aws::String& value) { SetResultField(value); return *this;} + + /** + *

    The returned value from an Add On.

    + */ + inline Analysis& WithResultField(Aws::String&& value) { SetResultField(std::move(value)); return *this;} + + /** + *

    The returned value from an Add On.

    + */ + inline Analysis& WithResultField(const char* value) { SetResultField(value); return *this;} + + private: + + Aws::String m_analyzer; + bool m_analyzerHasBeenSet = false; + + Aws::String m_resultField; + bool m_resultFieldHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Archive.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Archive.h new file mode 100644 index 00000000000..1f62867ed0a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Archive.h @@ -0,0 +1,227 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    An archive resource for storing and retaining emails.

    See + * Also:

    AWS + * API Reference

    + */ + class Archive + { + public: + AWS_MAILMANAGER_API Archive(); + AWS_MAILMANAGER_API Archive(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Archive& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The unique identifier of the archive.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The unique identifier of the archive.

    + */ + inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; } + + /** + *

    The unique identifier of the archive.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; } + + /** + *

    The unique identifier of the archive.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); } + + /** + *

    The unique identifier of the archive.

    + */ + inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); } + + /** + *

    The unique identifier of the archive.

    + */ + inline Archive& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The unique identifier of the archive.

    + */ + inline Archive& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the archive.

    + */ + inline Archive& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    The unique name assigned to the archive.

    + */ + inline const Aws::String& GetArchiveName() const{ return m_archiveName; } + + /** + *

    The unique name assigned to the archive.

    + */ + inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; } + + /** + *

    The unique name assigned to the archive.

    + */ + inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; } + + /** + *

    The unique name assigned to the archive.

    + */ + inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); } + + /** + *

    The unique name assigned to the archive.

    + */ + inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); } + + /** + *

    The unique name assigned to the archive.

    + */ + inline Archive& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;} + + /** + *

    The unique name assigned to the archive.

    + */ + inline Archive& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;} + + /** + *

    The unique name assigned to the archive.

    + */ + inline Archive& WithArchiveName(const char* value) { SetArchiveName(value); return *this;} + + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline const ArchiveState& GetArchiveState() const{ return m_archiveState; } + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline bool ArchiveStateHasBeenSet() const { return m_archiveStateHasBeenSet; } + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline void SetArchiveState(const ArchiveState& value) { m_archiveStateHasBeenSet = true; m_archiveState = value; } + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline void SetArchiveState(ArchiveState&& value) { m_archiveStateHasBeenSet = true; m_archiveState = std::move(value); } + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline Archive& WithArchiveState(const ArchiveState& value) { SetArchiveState(value); return *this;} + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline Archive& WithArchiveState(ArchiveState&& value) { SetArchiveState(std::move(value)); return *this;} + + + /** + *

    The timestamp of when the archive was last updated.

    + */ + inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } + + /** + *

    The timestamp of when the archive was last updated.

    + */ + inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; } + + /** + *

    The timestamp of when the archive was last updated.

    + */ + inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; } + + /** + *

    The timestamp of when the archive was last updated.

    + */ + inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); } + + /** + *

    The timestamp of when the archive was last updated.

    + */ + inline Archive& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the archive was last updated.

    + */ + inline Archive& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} + + private: + + Aws::String m_archiveId; + bool m_archiveIdHasBeenSet = false; + + Aws::String m_archiveName; + bool m_archiveNameHasBeenSet = false; + + ArchiveState m_archiveState; + bool m_archiveStateHasBeenSet = false; + + Aws::Utils::DateTime m_lastUpdatedTimestamp; + bool m_lastUpdatedTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveAction.h new file mode 100644 index 00000000000..3d4d6c3b7ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveAction.h @@ -0,0 +1,136 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The action to archive the email by delivering the email to an Amazon SES + * archive.

    See Also:

    AWS + * API Reference

    + */ + class ArchiveAction + { + public: + AWS_MAILMANAGER_API ArchiveAction(); + AWS_MAILMANAGER_API ArchiveAction(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ArchiveAction& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified archive has been + * deleted.

    + */ + inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified archive has been + * deleted.

    + */ + inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified archive has been + * deleted.

    + */ + inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified archive has been + * deleted.

    + */ + inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified archive has been + * deleted.

    + */ + inline ArchiveAction& WithActionFailurePolicy(const ActionFailurePolicy& value) { SetActionFailurePolicy(value); return *this;} + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified archive has been + * deleted.

    + */ + inline ArchiveAction& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;} + + + /** + *

    The identifier of the archive to send the email to.

    + */ + inline const Aws::String& GetTargetArchive() const{ return m_targetArchive; } + + /** + *

    The identifier of the archive to send the email to.

    + */ + inline bool TargetArchiveHasBeenSet() const { return m_targetArchiveHasBeenSet; } + + /** + *

    The identifier of the archive to send the email to.

    + */ + inline void SetTargetArchive(const Aws::String& value) { m_targetArchiveHasBeenSet = true; m_targetArchive = value; } + + /** + *

    The identifier of the archive to send the email to.

    + */ + inline void SetTargetArchive(Aws::String&& value) { m_targetArchiveHasBeenSet = true; m_targetArchive = std::move(value); } + + /** + *

    The identifier of the archive to send the email to.

    + */ + inline void SetTargetArchive(const char* value) { m_targetArchiveHasBeenSet = true; m_targetArchive.assign(value); } + + /** + *

    The identifier of the archive to send the email to.

    + */ + inline ArchiveAction& WithTargetArchive(const Aws::String& value) { SetTargetArchive(value); return *this;} + + /** + *

    The identifier of the archive to send the email to.

    + */ + inline ArchiveAction& WithTargetArchive(Aws::String&& value) { SetTargetArchive(std::move(value)); return *this;} + + /** + *

    The identifier of the archive to send the email to.

    + */ + inline ArchiveAction& WithTargetArchive(const char* value) { SetTargetArchive(value); return *this;} + + private: + + ActionFailurePolicy m_actionFailurePolicy; + bool m_actionFailurePolicyHasBeenSet = false; + + Aws::String m_targetArchive; + bool m_targetArchiveHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanEmailAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanEmailAttribute.h new file mode 100644 index 00000000000..4dc5bfb2c2c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanEmailAttribute.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class ArchiveBooleanEmailAttribute + { + NOT_SET, + HAS_ATTACHMENTS + }; + +namespace ArchiveBooleanEmailAttributeMapper +{ +AWS_MAILMANAGER_API ArchiveBooleanEmailAttribute GetArchiveBooleanEmailAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForArchiveBooleanEmailAttribute(ArchiveBooleanEmailAttribute value); +} // namespace ArchiveBooleanEmailAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanExpression.h new file mode 100644 index 00000000000..dfef6c626cc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanExpression.h @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A boolean expression to evaluate email attribute values.

    See + * Also:

    AWS + * API Reference

    + */ + class ArchiveBooleanExpression + { + public: + AWS_MAILMANAGER_API ArchiveBooleanExpression(); + AWS_MAILMANAGER_API ArchiveBooleanExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ArchiveBooleanExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The email attribute value to evaluate.

    + */ + inline const ArchiveBooleanToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The email attribute value to evaluate.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The email attribute value to evaluate.

    + */ + inline void SetEvaluate(const ArchiveBooleanToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The email attribute value to evaluate.

    + */ + inline void SetEvaluate(ArchiveBooleanToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The email attribute value to evaluate.

    + */ + inline ArchiveBooleanExpression& WithEvaluate(const ArchiveBooleanToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The email attribute value to evaluate.

    + */ + inline ArchiveBooleanExpression& WithEvaluate(ArchiveBooleanToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The boolean operator to use for evaluation.

    + */ + inline const ArchiveBooleanOperator& GetOperator() const{ return m_operator; } + + /** + *

    The boolean operator to use for evaluation.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The boolean operator to use for evaluation.

    + */ + inline void SetOperator(const ArchiveBooleanOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The boolean operator to use for evaluation.

    + */ + inline void SetOperator(ArchiveBooleanOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The boolean operator to use for evaluation.

    + */ + inline ArchiveBooleanExpression& WithOperator(const ArchiveBooleanOperator& value) { SetOperator(value); return *this;} + + /** + *

    The boolean operator to use for evaluation.

    + */ + inline ArchiveBooleanExpression& WithOperator(ArchiveBooleanOperator&& value) { SetOperator(std::move(value)); return *this;} + + private: + + ArchiveBooleanToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + ArchiveBooleanOperator m_operator; + bool m_operatorHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanOperator.h new file mode 100644 index 00000000000..350b129f8a2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanOperator.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class ArchiveBooleanOperator + { + NOT_SET, + IS_TRUE, + IS_FALSE + }; + +namespace ArchiveBooleanOperatorMapper +{ +AWS_MAILMANAGER_API ArchiveBooleanOperator GetArchiveBooleanOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForArchiveBooleanOperator(ArchiveBooleanOperator value); +} // namespace ArchiveBooleanOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanToEvaluate.h new file mode 100644 index 00000000000..7d3e8fce2ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveBooleanToEvaluate.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The attribute to evaluate in a boolean expression.

    See Also:

    + * AWS + * API Reference

    + */ + class ArchiveBooleanToEvaluate + { + public: + AWS_MAILMANAGER_API ArchiveBooleanToEvaluate(); + AWS_MAILMANAGER_API ArchiveBooleanToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ArchiveBooleanToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline const ArchiveBooleanEmailAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline void SetAttribute(const ArchiveBooleanEmailAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline void SetAttribute(ArchiveBooleanEmailAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline ArchiveBooleanToEvaluate& WithAttribute(const ArchiveBooleanEmailAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline ArchiveBooleanToEvaluate& WithAttribute(ArchiveBooleanEmailAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + ArchiveBooleanEmailAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveFilterCondition.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveFilterCondition.h new file mode 100644 index 00000000000..a0257bbb90e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveFilterCondition.h @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A filter condition used to include or exclude emails when exporting from or + * searching an archive.

    See Also:

    AWS + * API Reference

    + */ + class ArchiveFilterCondition + { + public: + AWS_MAILMANAGER_API ArchiveFilterCondition(); + AWS_MAILMANAGER_API ArchiveFilterCondition(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ArchiveFilterCondition& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    A boolean expression to evaluate against email attributes.

    + */ + inline const ArchiveBooleanExpression& GetBooleanExpression() const{ return m_booleanExpression; } + + /** + *

    A boolean expression to evaluate against email attributes.

    + */ + inline bool BooleanExpressionHasBeenSet() const { return m_booleanExpressionHasBeenSet; } + + /** + *

    A boolean expression to evaluate against email attributes.

    + */ + inline void SetBooleanExpression(const ArchiveBooleanExpression& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = value; } + + /** + *

    A boolean expression to evaluate against email attributes.

    + */ + inline void SetBooleanExpression(ArchiveBooleanExpression&& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = std::move(value); } + + /** + *

    A boolean expression to evaluate against email attributes.

    + */ + inline ArchiveFilterCondition& WithBooleanExpression(const ArchiveBooleanExpression& value) { SetBooleanExpression(value); return *this;} + + /** + *

    A boolean expression to evaluate against email attributes.

    + */ + inline ArchiveFilterCondition& WithBooleanExpression(ArchiveBooleanExpression&& value) { SetBooleanExpression(std::move(value)); return *this;} + + + /** + *

    A string expression to evaluate against email attributes.

    + */ + inline const ArchiveStringExpression& GetStringExpression() const{ return m_stringExpression; } + + /** + *

    A string expression to evaluate against email attributes.

    + */ + inline bool StringExpressionHasBeenSet() const { return m_stringExpressionHasBeenSet; } + + /** + *

    A string expression to evaluate against email attributes.

    + */ + inline void SetStringExpression(const ArchiveStringExpression& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = value; } + + /** + *

    A string expression to evaluate against email attributes.

    + */ + inline void SetStringExpression(ArchiveStringExpression&& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = std::move(value); } + + /** + *

    A string expression to evaluate against email attributes.

    + */ + inline ArchiveFilterCondition& WithStringExpression(const ArchiveStringExpression& value) { SetStringExpression(value); return *this;} + + /** + *

    A string expression to evaluate against email attributes.

    + */ + inline ArchiveFilterCondition& WithStringExpression(ArchiveStringExpression&& value) { SetStringExpression(std::move(value)); return *this;} + + private: + + ArchiveBooleanExpression m_booleanExpression; + bool m_booleanExpressionHasBeenSet = false; + + ArchiveStringExpression m_stringExpression; + bool m_stringExpressionHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveFilters.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveFilters.h new file mode 100644 index 00000000000..0d836285dd1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveFilters.h @@ -0,0 +1,134 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A set of filter conditions to include and/or exclude emails.

    See + * Also:

    AWS + * API Reference

    + */ + class ArchiveFilters + { + public: + AWS_MAILMANAGER_API ArchiveFilters(); + AWS_MAILMANAGER_API ArchiveFilters(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ArchiveFilters& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The filter conditions for emails to include.

    + */ + inline const Aws::Vector& GetInclude() const{ return m_include; } + + /** + *

    The filter conditions for emails to include.

    + */ + inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; } + + /** + *

    The filter conditions for emails to include.

    + */ + inline void SetInclude(const Aws::Vector& value) { m_includeHasBeenSet = true; m_include = value; } + + /** + *

    The filter conditions for emails to include.

    + */ + inline void SetInclude(Aws::Vector&& value) { m_includeHasBeenSet = true; m_include = std::move(value); } + + /** + *

    The filter conditions for emails to include.

    + */ + inline ArchiveFilters& WithInclude(const Aws::Vector& value) { SetInclude(value); return *this;} + + /** + *

    The filter conditions for emails to include.

    + */ + inline ArchiveFilters& WithInclude(Aws::Vector&& value) { SetInclude(std::move(value)); return *this;} + + /** + *

    The filter conditions for emails to include.

    + */ + inline ArchiveFilters& AddInclude(const ArchiveFilterCondition& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; } + + /** + *

    The filter conditions for emails to include.

    + */ + inline ArchiveFilters& AddInclude(ArchiveFilterCondition&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; } + + + /** + *

    The filter conditions for emails to exclude.

    + */ + inline const Aws::Vector& GetUnless() const{ return m_unless; } + + /** + *

    The filter conditions for emails to exclude.

    + */ + inline bool UnlessHasBeenSet() const { return m_unlessHasBeenSet; } + + /** + *

    The filter conditions for emails to exclude.

    + */ + inline void SetUnless(const Aws::Vector& value) { m_unlessHasBeenSet = true; m_unless = value; } + + /** + *

    The filter conditions for emails to exclude.

    + */ + inline void SetUnless(Aws::Vector&& value) { m_unlessHasBeenSet = true; m_unless = std::move(value); } + + /** + *

    The filter conditions for emails to exclude.

    + */ + inline ArchiveFilters& WithUnless(const Aws::Vector& value) { SetUnless(value); return *this;} + + /** + *

    The filter conditions for emails to exclude.

    + */ + inline ArchiveFilters& WithUnless(Aws::Vector&& value) { SetUnless(std::move(value)); return *this;} + + /** + *

    The filter conditions for emails to exclude.

    + */ + inline ArchiveFilters& AddUnless(const ArchiveFilterCondition& value) { m_unlessHasBeenSet = true; m_unless.push_back(value); return *this; } + + /** + *

    The filter conditions for emails to exclude.

    + */ + inline ArchiveFilters& AddUnless(ArchiveFilterCondition&& value) { m_unlessHasBeenSet = true; m_unless.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_include; + bool m_includeHasBeenSet = false; + + Aws::Vector m_unless; + bool m_unlessHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveRetention.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveRetention.h new file mode 100644 index 00000000000..a2eed7440b4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveRetention.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The retention policy for an email archive that specifies how long emails are + * kept before being automatically deleted.

    See Also:

    AWS + * API Reference

    + */ + class ArchiveRetention + { + public: + AWS_MAILMANAGER_API ArchiveRetention(); + AWS_MAILMANAGER_API ArchiveRetention(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ArchiveRetention& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The enum value sets the period for retaining emails in an archive.

    + */ + inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; } + + /** + *

    The enum value sets the period for retaining emails in an archive.

    + */ + inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; } + + /** + *

    The enum value sets the period for retaining emails in an archive.

    + */ + inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; } + + /** + *

    The enum value sets the period for retaining emails in an archive.

    + */ + inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); } + + /** + *

    The enum value sets the period for retaining emails in an archive.

    + */ + inline ArchiveRetention& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;} + + /** + *

    The enum value sets the period for retaining emails in an archive.

    + */ + inline ArchiveRetention& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;} + + private: + + RetentionPeriod m_retentionPeriod; + bool m_retentionPeriodHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveState.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveState.h new file mode 100644 index 00000000000..9595ebe1f54 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveState.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class ArchiveState + { + NOT_SET, + ACTIVE, + PENDING_DELETION + }; + +namespace ArchiveStateMapper +{ +AWS_MAILMANAGER_API ArchiveState GetArchiveStateForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForArchiveState(ArchiveState value); +} // namespace ArchiveStateMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringEmailAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringEmailAttribute.h new file mode 100644 index 00000000000..8e095682b6a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringEmailAttribute.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class ArchiveStringEmailAttribute + { + NOT_SET, + TO, + FROM, + CC, + SUBJECT + }; + +namespace ArchiveStringEmailAttributeMapper +{ +AWS_MAILMANAGER_API ArchiveStringEmailAttribute GetArchiveStringEmailAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForArchiveStringEmailAttribute(ArchiveStringEmailAttribute value); +} // namespace ArchiveStringEmailAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringExpression.h new file mode 100644 index 00000000000..56608fad0b1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringExpression.h @@ -0,0 +1,165 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A string expression to evaluate an email attribute value against one or more + * string values.

    See Also:

    AWS + * API Reference

    + */ + class ArchiveStringExpression + { + public: + AWS_MAILMANAGER_API ArchiveStringExpression(); + AWS_MAILMANAGER_API ArchiveStringExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ArchiveStringExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The attribute of the email to evaluate.

    + */ + inline const ArchiveStringToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The attribute of the email to evaluate.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The attribute of the email to evaluate.

    + */ + inline void SetEvaluate(const ArchiveStringToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The attribute of the email to evaluate.

    + */ + inline void SetEvaluate(ArchiveStringToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The attribute of the email to evaluate.

    + */ + inline ArchiveStringExpression& WithEvaluate(const ArchiveStringToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The attribute of the email to evaluate.

    + */ + inline ArchiveStringExpression& WithEvaluate(ArchiveStringToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The operator to use when evaluating the string values.

    + */ + inline const ArchiveStringOperator& GetOperator() const{ return m_operator; } + + /** + *

    The operator to use when evaluating the string values.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The operator to use when evaluating the string values.

    + */ + inline void SetOperator(const ArchiveStringOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The operator to use when evaluating the string values.

    + */ + inline void SetOperator(ArchiveStringOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The operator to use when evaluating the string values.

    + */ + inline ArchiveStringExpression& WithOperator(const ArchiveStringOperator& value) { SetOperator(value); return *this;} + + /** + *

    The operator to use when evaluating the string values.

    + */ + inline ArchiveStringExpression& WithOperator(ArchiveStringOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline ArchiveStringExpression& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline ArchiveStringExpression& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline ArchiveStringExpression& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline ArchiveStringExpression& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + + /** + *

    The list of string values to evaluate the email attribute against.

    + */ + inline ArchiveStringExpression& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + private: + + ArchiveStringToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + ArchiveStringOperator m_operator; + bool m_operatorHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringOperator.h new file mode 100644 index 00000000000..d3d48df3225 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringOperator.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class ArchiveStringOperator + { + NOT_SET, + CONTAINS + }; + +namespace ArchiveStringOperatorMapper +{ +AWS_MAILMANAGER_API ArchiveStringOperator GetArchiveStringOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForArchiveStringOperator(ArchiveStringOperator value); +} // namespace ArchiveStringOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringToEvaluate.h new file mode 100644 index 00000000000..a28c1c92895 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ArchiveStringToEvaluate.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    Specifies the email attribute to evaluate in a string + * expression.

    See Also:

    AWS + * API Reference

    + */ + class ArchiveStringToEvaluate + { + public: + AWS_MAILMANAGER_API ArchiveStringToEvaluate(); + AWS_MAILMANAGER_API ArchiveStringToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ArchiveStringToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline const ArchiveStringEmailAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline void SetAttribute(const ArchiveStringEmailAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline void SetAttribute(ArchiveStringEmailAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline ArchiveStringToEvaluate& WithAttribute(const ArchiveStringEmailAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The name of the email attribute to evaluate.

    + */ + inline ArchiveStringToEvaluate& WithAttribute(ArchiveStringEmailAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + ArchiveStringEmailAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonInstanceRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonInstanceRequest.h new file mode 100644 index 00000000000..bf008a5ddfc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonInstanceRequest.h @@ -0,0 +1,200 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class CreateAddonInstanceRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API CreateAddonInstanceRequest(); + + // 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 "CreateAddonInstance"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The unique ID of a previously created subscription that an Add On instance is + * created for. You can only have one instance per subscription.

    + */ + inline const Aws::String& GetAddonSubscriptionId() const{ return m_addonSubscriptionId; } + + /** + *

    The unique ID of a previously created subscription that an Add On instance is + * created for. You can only have one instance per subscription.

    + */ + inline bool AddonSubscriptionIdHasBeenSet() const { return m_addonSubscriptionIdHasBeenSet; } + + /** + *

    The unique ID of a previously created subscription that an Add On instance is + * created for. You can only have one instance per subscription.

    + */ + inline void SetAddonSubscriptionId(const Aws::String& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = value; } + + /** + *

    The unique ID of a previously created subscription that an Add On instance is + * created for. You can only have one instance per subscription.

    + */ + inline void SetAddonSubscriptionId(Aws::String&& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = std::move(value); } + + /** + *

    The unique ID of a previously created subscription that an Add On instance is + * created for. You can only have one instance per subscription.

    + */ + inline void SetAddonSubscriptionId(const char* value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId.assign(value); } + + /** + *

    The unique ID of a previously created subscription that an Add On instance is + * created for. You can only have one instance per subscription.

    + */ + inline CreateAddonInstanceRequest& WithAddonSubscriptionId(const Aws::String& value) { SetAddonSubscriptionId(value); return *this;} + + /** + *

    The unique ID of a previously created subscription that an Add On instance is + * created for. You can only have one instance per subscription.

    + */ + inline CreateAddonInstanceRequest& WithAddonSubscriptionId(Aws::String&& value) { SetAddonSubscriptionId(std::move(value)); return *this;} + + /** + *

    The unique ID of a previously created subscription that an Add On instance is + * created for. You can only have one instance per subscription.

    + */ + inline CreateAddonInstanceRequest& WithAddonSubscriptionId(const char* value) { SetAddonSubscriptionId(value); return *this;} + + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateAddonInstanceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateAddonInstanceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateAddonInstanceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateAddonInstanceRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateAddonInstanceRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateAddonInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateAddonInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_addonSubscriptionId; + bool m_addonSubscriptionIdHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonInstanceResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonInstanceResult.h new file mode 100644 index 00000000000..0e898ccb9a7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonInstanceResult.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class CreateAddonInstanceResult + { + public: + AWS_MAILMANAGER_API CreateAddonInstanceResult(); + AWS_MAILMANAGER_API CreateAddonInstanceResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API CreateAddonInstanceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique ID of the Add On instance created by this API.

    + */ + inline const Aws::String& GetAddonInstanceId() const{ return m_addonInstanceId; } + + /** + *

    The unique ID of the Add On instance created by this API.

    + */ + inline void SetAddonInstanceId(const Aws::String& value) { m_addonInstanceId = value; } + + /** + *

    The unique ID of the Add On instance created by this API.

    + */ + inline void SetAddonInstanceId(Aws::String&& value) { m_addonInstanceId = std::move(value); } + + /** + *

    The unique ID of the Add On instance created by this API.

    + */ + inline void SetAddonInstanceId(const char* value) { m_addonInstanceId.assign(value); } + + /** + *

    The unique ID of the Add On instance created by this API.

    + */ + inline CreateAddonInstanceResult& WithAddonInstanceId(const Aws::String& value) { SetAddonInstanceId(value); return *this;} + + /** + *

    The unique ID of the Add On instance created by this API.

    + */ + inline CreateAddonInstanceResult& WithAddonInstanceId(Aws::String&& value) { SetAddonInstanceId(std::move(value)); return *this;} + + /** + *

    The unique ID of the Add On instance created by this API.

    + */ + inline CreateAddonInstanceResult& WithAddonInstanceId(const char* value) { SetAddonInstanceId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateAddonInstanceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateAddonInstanceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateAddonInstanceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_addonInstanceId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonSubscriptionRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonSubscriptionRequest.h new file mode 100644 index 00000000000..e1e6870fc42 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonSubscriptionRequest.h @@ -0,0 +1,200 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class CreateAddonSubscriptionRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API CreateAddonSubscriptionRequest(); + + // 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 "CreateAddonSubscription"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The name of the Add On to subscribe to. You can only have one subscription + * for each Add On name.

    + */ + inline const Aws::String& GetAddonName() const{ return m_addonName; } + + /** + *

    The name of the Add On to subscribe to. You can only have one subscription + * for each Add On name.

    + */ + inline bool AddonNameHasBeenSet() const { return m_addonNameHasBeenSet; } + + /** + *

    The name of the Add On to subscribe to. You can only have one subscription + * for each Add On name.

    + */ + inline void SetAddonName(const Aws::String& value) { m_addonNameHasBeenSet = true; m_addonName = value; } + + /** + *

    The name of the Add On to subscribe to. You can only have one subscription + * for each Add On name.

    + */ + inline void SetAddonName(Aws::String&& value) { m_addonNameHasBeenSet = true; m_addonName = std::move(value); } + + /** + *

    The name of the Add On to subscribe to. You can only have one subscription + * for each Add On name.

    + */ + inline void SetAddonName(const char* value) { m_addonNameHasBeenSet = true; m_addonName.assign(value); } + + /** + *

    The name of the Add On to subscribe to. You can only have one subscription + * for each Add On name.

    + */ + inline CreateAddonSubscriptionRequest& WithAddonName(const Aws::String& value) { SetAddonName(value); return *this;} + + /** + *

    The name of the Add On to subscribe to. You can only have one subscription + * for each Add On name.

    + */ + inline CreateAddonSubscriptionRequest& WithAddonName(Aws::String&& value) { SetAddonName(std::move(value)); return *this;} + + /** + *

    The name of the Add On to subscribe to. You can only have one subscription + * for each Add On name.

    + */ + inline CreateAddonSubscriptionRequest& WithAddonName(const char* value) { SetAddonName(value); return *this;} + + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateAddonSubscriptionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateAddonSubscriptionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateAddonSubscriptionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateAddonSubscriptionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateAddonSubscriptionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateAddonSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateAddonSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_addonName; + bool m_addonNameHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonSubscriptionResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonSubscriptionResult.h new file mode 100644 index 00000000000..ef3c36338c2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateAddonSubscriptionResult.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class CreateAddonSubscriptionResult + { + public: + AWS_MAILMANAGER_API CreateAddonSubscriptionResult(); + AWS_MAILMANAGER_API CreateAddonSubscriptionResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API CreateAddonSubscriptionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique ID of the Add On subscription created by this API.

    + */ + inline const Aws::String& GetAddonSubscriptionId() const{ return m_addonSubscriptionId; } + + /** + *

    The unique ID of the Add On subscription created by this API.

    + */ + inline void SetAddonSubscriptionId(const Aws::String& value) { m_addonSubscriptionId = value; } + + /** + *

    The unique ID of the Add On subscription created by this API.

    + */ + inline void SetAddonSubscriptionId(Aws::String&& value) { m_addonSubscriptionId = std::move(value); } + + /** + *

    The unique ID of the Add On subscription created by this API.

    + */ + inline void SetAddonSubscriptionId(const char* value) { m_addonSubscriptionId.assign(value); } + + /** + *

    The unique ID of the Add On subscription created by this API.

    + */ + inline CreateAddonSubscriptionResult& WithAddonSubscriptionId(const Aws::String& value) { SetAddonSubscriptionId(value); return *this;} + + /** + *

    The unique ID of the Add On subscription created by this API.

    + */ + inline CreateAddonSubscriptionResult& WithAddonSubscriptionId(Aws::String&& value) { SetAddonSubscriptionId(std::move(value)); return *this;} + + /** + *

    The unique ID of the Add On subscription created by this API.

    + */ + inline CreateAddonSubscriptionResult& WithAddonSubscriptionId(const char* value) { SetAddonSubscriptionId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateAddonSubscriptionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateAddonSubscriptionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateAddonSubscriptionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_addonSubscriptionId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateArchiveRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateArchiveRequest.h new file mode 100644 index 00000000000..d8452261bb2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateArchiveRequest.h @@ -0,0 +1,274 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to create a new email archive.

    See Also:

    AWS + * API Reference

    + */ + class CreateArchiveRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API CreateArchiveRequest(); + + // 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 "CreateArchive"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    A unique name for the new archive.

    + */ + inline const Aws::String& GetArchiveName() const{ return m_archiveName; } + + /** + *

    A unique name for the new archive.

    + */ + inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; } + + /** + *

    A unique name for the new archive.

    + */ + inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; } + + /** + *

    A unique name for the new archive.

    + */ + inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); } + + /** + *

    A unique name for the new archive.

    + */ + inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); } + + /** + *

    A unique name for the new archive.

    + */ + inline CreateArchiveRequest& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;} + + /** + *

    A unique name for the new archive.

    + */ + inline CreateArchiveRequest& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;} + + /** + *

    A unique name for the new archive.

    + */ + inline CreateArchiveRequest& WithArchiveName(const char* value) { SetArchiveName(value); return *this;} + + + /** + *

    A unique token Amazon SES uses to recognize retries of this request.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    A unique token Amazon SES uses to recognize retries of this request.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    A unique token Amazon SES uses to recognize retries of this request.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    A unique token Amazon SES uses to recognize retries of this request.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    A unique token Amazon SES uses to recognize retries of this request.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    A unique token Amazon SES uses to recognize retries of this request.

    + */ + inline CreateArchiveRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    A unique token Amazon SES uses to recognize retries of this request.

    + */ + inline CreateArchiveRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    A unique token Amazon SES uses to recognize retries of this request.

    + */ + inline CreateArchiveRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive.

    + */ + inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive.

    + */ + inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive.

    + */ + inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive.

    + */ + inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive.

    + */ + inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive.

    + */ + inline CreateArchiveRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive.

    + */ + inline CreateArchiveRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the + * archive.

    + */ + inline CreateArchiveRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} + + + /** + *

    The period for retaining emails in the archive before automatic deletion.

    + */ + inline const ArchiveRetention& GetRetention() const{ return m_retention; } + + /** + *

    The period for retaining emails in the archive before automatic deletion.

    + */ + inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; } + + /** + *

    The period for retaining emails in the archive before automatic deletion.

    + */ + inline void SetRetention(const ArchiveRetention& value) { m_retentionHasBeenSet = true; m_retention = value; } + + /** + *

    The period for retaining emails in the archive before automatic deletion.

    + */ + inline void SetRetention(ArchiveRetention&& value) { m_retentionHasBeenSet = true; m_retention = std::move(value); } + + /** + *

    The period for retaining emails in the archive before automatic deletion.

    + */ + inline CreateArchiveRequest& WithRetention(const ArchiveRetention& value) { SetRetention(value); return *this;} + + /** + *

    The period for retaining emails in the archive before automatic deletion.

    + */ + inline CreateArchiveRequest& WithRetention(ArchiveRetention&& value) { SetRetention(std::move(value)); return *this;} + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateArchiveRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateArchiveRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateArchiveRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateArchiveRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_archiveName; + bool m_archiveNameHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_kmsKeyArn; + bool m_kmsKeyArnHasBeenSet = false; + + ArchiveRetention m_retention; + bool m_retentionHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateArchiveResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateArchiveResult.h new file mode 100644 index 00000000000..363e62a5bce --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateArchiveResult.h @@ -0,0 +1,106 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response from creating a new email archive.

    See Also:

    AWS + * API Reference

    + */ + class CreateArchiveResult + { + public: + AWS_MAILMANAGER_API CreateArchiveResult(); + AWS_MAILMANAGER_API CreateArchiveResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API CreateArchiveResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique identifier for the newly created archive.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The unique identifier for the newly created archive.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; } + + /** + *

    The unique identifier for the newly created archive.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveId = std::move(value); } + + /** + *

    The unique identifier for the newly created archive.

    + */ + inline void SetArchiveId(const char* value) { m_archiveId.assign(value); } + + /** + *

    The unique identifier for the newly created archive.

    + */ + inline CreateArchiveResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The unique identifier for the newly created archive.

    + */ + inline CreateArchiveResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The unique identifier for the newly created archive.

    + */ + inline CreateArchiveResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_archiveId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateIngressPointRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateIngressPointRequest.h new file mode 100644 index 00000000000..2b124d8a780 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateIngressPointRequest.h @@ -0,0 +1,372 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class CreateIngressPointRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API CreateIngressPointRequest(); + + // 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 "CreateIngressPoint"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateIngressPointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateIngressPointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateIngressPointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline const IngressPointConfiguration& GetIngressPointConfiguration() const{ return m_ingressPointConfiguration; } + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline bool IngressPointConfigurationHasBeenSet() const { return m_ingressPointConfigurationHasBeenSet; } + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline void SetIngressPointConfiguration(const IngressPointConfiguration& value) { m_ingressPointConfigurationHasBeenSet = true; m_ingressPointConfiguration = value; } + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline void SetIngressPointConfiguration(IngressPointConfiguration&& value) { m_ingressPointConfigurationHasBeenSet = true; m_ingressPointConfiguration = std::move(value); } + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline CreateIngressPointRequest& WithIngressPointConfiguration(const IngressPointConfiguration& value) { SetIngressPointConfiguration(value); return *this;} + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline CreateIngressPointRequest& WithIngressPointConfiguration(IngressPointConfiguration&& value) { SetIngressPointConfiguration(std::move(value)); return *this;} + + + /** + *

    A user friendly name for an ingress endpoint resource.

    + */ + inline const Aws::String& GetIngressPointName() const{ return m_ingressPointName; } + + /** + *

    A user friendly name for an ingress endpoint resource.

    + */ + inline bool IngressPointNameHasBeenSet() const { return m_ingressPointNameHasBeenSet; } + + /** + *

    A user friendly name for an ingress endpoint resource.

    + */ + inline void SetIngressPointName(const Aws::String& value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName = value; } + + /** + *

    A user friendly name for an ingress endpoint resource.

    + */ + inline void SetIngressPointName(Aws::String&& value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName = std::move(value); } + + /** + *

    A user friendly name for an ingress endpoint resource.

    + */ + inline void SetIngressPointName(const char* value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName.assign(value); } + + /** + *

    A user friendly name for an ingress endpoint resource.

    + */ + inline CreateIngressPointRequest& WithIngressPointName(const Aws::String& value) { SetIngressPointName(value); return *this;} + + /** + *

    A user friendly name for an ingress endpoint resource.

    + */ + inline CreateIngressPointRequest& WithIngressPointName(Aws::String&& value) { SetIngressPointName(std::move(value)); return *this;} + + /** + *

    A user friendly name for an ingress endpoint resource.

    + */ + inline CreateIngressPointRequest& WithIngressPointName(const char* value) { SetIngressPointName(value); return *this;} + + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = value; } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::move(value); } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId.assign(value); } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline CreateIngressPointRequest& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline CreateIngressPointRequest& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline CreateIngressPointRequest& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateIngressPointRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateIngressPointRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateIngressPointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateIngressPointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline CreateIngressPointRequest& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline CreateIngressPointRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline CreateIngressPointRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + + /** + *

    The type of the ingress endpoint to create.

    + */ + inline const IngressPointType& GetType() const{ return m_type; } + + /** + *

    The type of the ingress endpoint to create.

    + */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

    The type of the ingress endpoint to create.

    + */ + inline void SetType(const IngressPointType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

    The type of the ingress endpoint to create.

    + */ + inline void SetType(IngressPointType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

    The type of the ingress endpoint to create.

    + */ + inline CreateIngressPointRequest& WithType(const IngressPointType& value) { SetType(value); return *this;} + + /** + *

    The type of the ingress endpoint to create.

    + */ + inline CreateIngressPointRequest& WithType(IngressPointType&& value) { SetType(std::move(value)); return *this;} + + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + IngressPointConfiguration m_ingressPointConfiguration; + bool m_ingressPointConfigurationHasBeenSet = false; + + Aws::String m_ingressPointName; + bool m_ingressPointNameHasBeenSet = false; + + Aws::String m_ruleSetId; + bool m_ruleSetIdHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + + Aws::String m_trafficPolicyId; + bool m_trafficPolicyIdHasBeenSet = false; + + IngressPointType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateIngressPointResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateIngressPointResult.h new file mode 100644 index 00000000000..be6bdd6a2fb --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateIngressPointResult.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class CreateIngressPointResult + { + public: + AWS_MAILMANAGER_API CreateIngressPointResult(); + AWS_MAILMANAGER_API CreateIngressPointResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API CreateIngressPointResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique identifier for a previously created ingress endpoint.

    + */ + inline const Aws::String& GetIngressPointId() const{ return m_ingressPointId; } + + /** + *

    The unique identifier for a previously created ingress endpoint.

    + */ + inline void SetIngressPointId(const Aws::String& value) { m_ingressPointId = value; } + + /** + *

    The unique identifier for a previously created ingress endpoint.

    + */ + inline void SetIngressPointId(Aws::String&& value) { m_ingressPointId = std::move(value); } + + /** + *

    The unique identifier for a previously created ingress endpoint.

    + */ + inline void SetIngressPointId(const char* value) { m_ingressPointId.assign(value); } + + /** + *

    The unique identifier for a previously created ingress endpoint.

    + */ + inline CreateIngressPointResult& WithIngressPointId(const Aws::String& value) { SetIngressPointId(value); return *this;} + + /** + *

    The unique identifier for a previously created ingress endpoint.

    + */ + inline CreateIngressPointResult& WithIngressPointId(Aws::String&& value) { SetIngressPointId(std::move(value)); return *this;} + + /** + *

    The unique identifier for a previously created ingress endpoint.

    + */ + inline CreateIngressPointResult& WithIngressPointId(const char* value) { SetIngressPointId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateIngressPointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateIngressPointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateIngressPointResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_ingressPointId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRelayRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRelayRequest.h new file mode 100644 index 00000000000..9a1eff7f358 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRelayRequest.h @@ -0,0 +1,301 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class CreateRelayRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API CreateRelayRequest(); + + // 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 "CreateRelay"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline const RelayAuthentication& GetAuthentication() const{ return m_authentication; } + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; } + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline void SetAuthentication(const RelayAuthentication& value) { m_authenticationHasBeenSet = true; m_authentication = value; } + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline void SetAuthentication(RelayAuthentication&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); } + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline CreateRelayRequest& WithAuthentication(const RelayAuthentication& value) { SetAuthentication(value); return *this;} + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline CreateRelayRequest& WithAuthentication(RelayAuthentication&& value) { SetAuthentication(std::move(value)); return *this;} + + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateRelayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateRelayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateRelayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    The unique name of the relay resource.

    + */ + inline const Aws::String& GetRelayName() const{ return m_relayName; } + + /** + *

    The unique name of the relay resource.

    + */ + inline bool RelayNameHasBeenSet() const { return m_relayNameHasBeenSet; } + + /** + *

    The unique name of the relay resource.

    + */ + inline void SetRelayName(const Aws::String& value) { m_relayNameHasBeenSet = true; m_relayName = value; } + + /** + *

    The unique name of the relay resource.

    + */ + inline void SetRelayName(Aws::String&& value) { m_relayNameHasBeenSet = true; m_relayName = std::move(value); } + + /** + *

    The unique name of the relay resource.

    + */ + inline void SetRelayName(const char* value) { m_relayNameHasBeenSet = true; m_relayName.assign(value); } + + /** + *

    The unique name of the relay resource.

    + */ + inline CreateRelayRequest& WithRelayName(const Aws::String& value) { SetRelayName(value); return *this;} + + /** + *

    The unique name of the relay resource.

    + */ + inline CreateRelayRequest& WithRelayName(Aws::String&& value) { SetRelayName(std::move(value)); return *this;} + + /** + *

    The unique name of the relay resource.

    + */ + inline CreateRelayRequest& WithRelayName(const char* value) { SetRelayName(value); return *this;} + + + /** + *

    The destination relay server address.

    + */ + inline const Aws::String& GetServerName() const{ return m_serverName; } + + /** + *

    The destination relay server address.

    + */ + inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); } + + /** + *

    The destination relay server address.

    + */ + inline CreateRelayRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} + + /** + *

    The destination relay server address.

    + */ + inline CreateRelayRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} + + /** + *

    The destination relay server address.

    + */ + inline CreateRelayRequest& WithServerName(const char* value) { SetServerName(value); return *this;} + + + /** + *

    The destination relay server port.

    + */ + inline int GetServerPort() const{ return m_serverPort; } + + /** + *

    The destination relay server port.

    + */ + inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; } + + /** + *

    The destination relay server port.

    + */ + inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; } + + /** + *

    The destination relay server port.

    + */ + inline CreateRelayRequest& WithServerPort(int value) { SetServerPort(value); return *this;} + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateRelayRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateRelayRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateRelayRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateRelayRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + RelayAuthentication m_authentication; + bool m_authenticationHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_relayName; + bool m_relayNameHasBeenSet = false; + + Aws::String m_serverName; + bool m_serverNameHasBeenSet = false; + + int m_serverPort; + bool m_serverPortHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRelayResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRelayResult.h new file mode 100644 index 00000000000..42b340642ee --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRelayResult.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class CreateRelayResult + { + public: + AWS_MAILMANAGER_API CreateRelayResult(); + AWS_MAILMANAGER_API CreateRelayResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API CreateRelayResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    A unique identifier of the created relay resource.

    + */ + inline const Aws::String& GetRelayId() const{ return m_relayId; } + + /** + *

    A unique identifier of the created relay resource.

    + */ + inline void SetRelayId(const Aws::String& value) { m_relayId = value; } + + /** + *

    A unique identifier of the created relay resource.

    + */ + inline void SetRelayId(Aws::String&& value) { m_relayId = std::move(value); } + + /** + *

    A unique identifier of the created relay resource.

    + */ + inline void SetRelayId(const char* value) { m_relayId.assign(value); } + + /** + *

    A unique identifier of the created relay resource.

    + */ + inline CreateRelayResult& WithRelayId(const Aws::String& value) { SetRelayId(value); return *this;} + + /** + *

    A unique identifier of the created relay resource.

    + */ + inline CreateRelayResult& WithRelayId(Aws::String&& value) { SetRelayId(std::move(value)); return *this;} + + /** + *

    A unique identifier of the created relay resource.

    + */ + inline CreateRelayResult& WithRelayId(const char* value) { SetRelayId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateRelayResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateRelayResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateRelayResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_relayId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRuleSetRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRuleSetRequest.h new file mode 100644 index 00000000000..00548c6ecc0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRuleSetRequest.h @@ -0,0 +1,237 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class CreateRuleSetRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API CreateRuleSetRequest(); + + // 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 "CreateRuleSet"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateRuleSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateRuleSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateRuleSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    A user-friendly name for the rule set.

    + */ + inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline CreateRuleSetRequest& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;} + + /** + *

    A user-friendly name for the rule set.

    + */ + inline CreateRuleSetRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;} + + /** + *

    A user-friendly name for the rule set.

    + */ + inline CreateRuleSetRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;} + + + /** + *

    Conditional rules that are evaluated for determining actions on email.

    + */ + inline const Aws::Vector& GetRules() const{ return m_rules; } + + /** + *

    Conditional rules that are evaluated for determining actions on email.

    + */ + inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } + + /** + *

    Conditional rules that are evaluated for determining actions on email.

    + */ + inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } + + /** + *

    Conditional rules that are evaluated for determining actions on email.

    + */ + inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } + + /** + *

    Conditional rules that are evaluated for determining actions on email.

    + */ + inline CreateRuleSetRequest& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} + + /** + *

    Conditional rules that are evaluated for determining actions on email.

    + */ + inline CreateRuleSetRequest& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} + + /** + *

    Conditional rules that are evaluated for determining actions on email.

    + */ + inline CreateRuleSetRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } + + /** + *

    Conditional rules that are evaluated for determining actions on email.

    + */ + inline CreateRuleSetRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateRuleSetRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateRuleSetRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateRuleSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateRuleSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_ruleSetName; + bool m_ruleSetNameHasBeenSet = false; + + Aws::Vector m_rules; + bool m_rulesHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRuleSetResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRuleSetResult.h new file mode 100644 index 00000000000..b5dec0bde10 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateRuleSetResult.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class CreateRuleSetResult + { + public: + AWS_MAILMANAGER_API CreateRuleSetResult(); + AWS_MAILMANAGER_API CreateRuleSetResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API CreateRuleSetResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The identifier of the created rule set.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of the created rule set.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetId = value; } + + /** + *

    The identifier of the created rule set.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetId = std::move(value); } + + /** + *

    The identifier of the created rule set.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetId.assign(value); } + + /** + *

    The identifier of the created rule set.

    + */ + inline CreateRuleSetResult& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of the created rule set.

    + */ + inline CreateRuleSetResult& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of the created rule set.

    + */ + inline CreateRuleSetResult& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateRuleSetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateRuleSetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateRuleSetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_ruleSetId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateTrafficPolicyRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateTrafficPolicyRequest.h new file mode 100644 index 00000000000..8d58bacf645 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateTrafficPolicyRequest.h @@ -0,0 +1,312 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class CreateTrafficPolicyRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API CreateTrafficPolicyRequest(); + + // 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 "CreateTrafficPolicy"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateTrafficPolicyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateTrafficPolicyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *

    A unique token that Amazon SES uses to recognize subsequent retries of the + * same request.

    + */ + inline CreateTrafficPolicyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline const AcceptAction& GetDefaultAction() const{ return m_defaultAction; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline void SetDefaultAction(const AcceptAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline void SetDefaultAction(AcceptAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline CreateTrafficPolicyRequest& WithDefaultAction(const AcceptAction& value) { SetDefaultAction(value); return *this;} + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline CreateTrafficPolicyRequest& WithDefaultAction(AcceptAction&& value) { SetDefaultAction(std::move(value)); return *this;} + + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline int GetMaxMessageSizeBytes() const{ return m_maxMessageSizeBytes; } + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline bool MaxMessageSizeBytesHasBeenSet() const { return m_maxMessageSizeBytesHasBeenSet; } + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline void SetMaxMessageSizeBytes(int value) { m_maxMessageSizeBytesHasBeenSet = true; m_maxMessageSizeBytes = value; } + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline CreateTrafficPolicyRequest& WithMaxMessageSizeBytes(int value) { SetMaxMessageSizeBytes(value); return *this;} + + + /** + *

    Conditional statements for filtering email traffic.

    + */ + inline const Aws::Vector& GetPolicyStatements() const{ return m_policyStatements; } + + /** + *

    Conditional statements for filtering email traffic.

    + */ + inline bool PolicyStatementsHasBeenSet() const { return m_policyStatementsHasBeenSet; } + + /** + *

    Conditional statements for filtering email traffic.

    + */ + inline void SetPolicyStatements(const Aws::Vector& value) { m_policyStatementsHasBeenSet = true; m_policyStatements = value; } + + /** + *

    Conditional statements for filtering email traffic.

    + */ + inline void SetPolicyStatements(Aws::Vector&& value) { m_policyStatementsHasBeenSet = true; m_policyStatements = std::move(value); } + + /** + *

    Conditional statements for filtering email traffic.

    + */ + inline CreateTrafficPolicyRequest& WithPolicyStatements(const Aws::Vector& value) { SetPolicyStatements(value); return *this;} + + /** + *

    Conditional statements for filtering email traffic.

    + */ + inline CreateTrafficPolicyRequest& WithPolicyStatements(Aws::Vector&& value) { SetPolicyStatements(std::move(value)); return *this;} + + /** + *

    Conditional statements for filtering email traffic.

    + */ + inline CreateTrafficPolicyRequest& AddPolicyStatements(const PolicyStatement& value) { m_policyStatementsHasBeenSet = true; m_policyStatements.push_back(value); return *this; } + + /** + *

    Conditional statements for filtering email traffic.

    + */ + inline CreateTrafficPolicyRequest& AddPolicyStatements(PolicyStatement&& value) { m_policyStatementsHasBeenSet = true; m_policyStatements.push_back(std::move(value)); return *this; } + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateTrafficPolicyRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateTrafficPolicyRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateTrafficPolicyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline CreateTrafficPolicyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } + + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyName() const{ return m_trafficPolicyName; } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline bool TrafficPolicyNameHasBeenSet() const { return m_trafficPolicyNameHasBeenSet; } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(const Aws::String& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = value; } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(Aws::String&& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = std::move(value); } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(const char* value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName.assign(value); } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline CreateTrafficPolicyRequest& WithTrafficPolicyName(const Aws::String& value) { SetTrafficPolicyName(value); return *this;} + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline CreateTrafficPolicyRequest& WithTrafficPolicyName(Aws::String&& value) { SetTrafficPolicyName(std::move(value)); return *this;} + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline CreateTrafficPolicyRequest& WithTrafficPolicyName(const char* value) { SetTrafficPolicyName(value); return *this;} + + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + AcceptAction m_defaultAction; + bool m_defaultActionHasBeenSet = false; + + int m_maxMessageSizeBytes; + bool m_maxMessageSizeBytesHasBeenSet = false; + + Aws::Vector m_policyStatements; + bool m_policyStatementsHasBeenSet = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + + Aws::String m_trafficPolicyName; + bool m_trafficPolicyNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateTrafficPolicyResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateTrafficPolicyResult.h new file mode 100644 index 00000000000..dc5ccf3d526 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/CreateTrafficPolicyResult.h @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class CreateTrafficPolicyResult + { + public: + AWS_MAILMANAGER_API CreateTrafficPolicyResult(); + AWS_MAILMANAGER_API CreateTrafficPolicyResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API CreateTrafficPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyId = value; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline CreateTrafficPolicyResult& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline CreateTrafficPolicyResult& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline CreateTrafficPolicyResult& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline CreateTrafficPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline CreateTrafficPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline CreateTrafficPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_trafficPolicyId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonInstanceRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonInstanceRequest.h new file mode 100644 index 00000000000..f35ac9f3352 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonInstanceRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class DeleteAddonInstanceRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API DeleteAddonInstanceRequest(); + + // 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 "DeleteAddonInstance"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Add On instance ID to delete.

    + */ + inline const Aws::String& GetAddonInstanceId() const{ return m_addonInstanceId; } + + /** + *

    The Add On instance ID to delete.

    + */ + inline bool AddonInstanceIdHasBeenSet() const { return m_addonInstanceIdHasBeenSet; } + + /** + *

    The Add On instance ID to delete.

    + */ + inline void SetAddonInstanceId(const Aws::String& value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId = value; } + + /** + *

    The Add On instance ID to delete.

    + */ + inline void SetAddonInstanceId(Aws::String&& value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId = std::move(value); } + + /** + *

    The Add On instance ID to delete.

    + */ + inline void SetAddonInstanceId(const char* value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId.assign(value); } + + /** + *

    The Add On instance ID to delete.

    + */ + inline DeleteAddonInstanceRequest& WithAddonInstanceId(const Aws::String& value) { SetAddonInstanceId(value); return *this;} + + /** + *

    The Add On instance ID to delete.

    + */ + inline DeleteAddonInstanceRequest& WithAddonInstanceId(Aws::String&& value) { SetAddonInstanceId(std::move(value)); return *this;} + + /** + *

    The Add On instance ID to delete.

    + */ + inline DeleteAddonInstanceRequest& WithAddonInstanceId(const char* value) { SetAddonInstanceId(value); return *this;} + + private: + + Aws::String m_addonInstanceId; + bool m_addonInstanceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonInstanceResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonInstanceResult.h new file mode 100644 index 00000000000..bd5fb0160e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonInstanceResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class DeleteAddonInstanceResult + { + public: + AWS_MAILMANAGER_API DeleteAddonInstanceResult(); + AWS_MAILMANAGER_API DeleteAddonInstanceResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API DeleteAddonInstanceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DeleteAddonInstanceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteAddonInstanceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteAddonInstanceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonSubscriptionRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonSubscriptionRequest.h new file mode 100644 index 00000000000..e119d72be96 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonSubscriptionRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class DeleteAddonSubscriptionRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API DeleteAddonSubscriptionRequest(); + + // 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 "DeleteAddonSubscription"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Add On subscription ID to delete.

    + */ + inline const Aws::String& GetAddonSubscriptionId() const{ return m_addonSubscriptionId; } + + /** + *

    The Add On subscription ID to delete.

    + */ + inline bool AddonSubscriptionIdHasBeenSet() const { return m_addonSubscriptionIdHasBeenSet; } + + /** + *

    The Add On subscription ID to delete.

    + */ + inline void SetAddonSubscriptionId(const Aws::String& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = value; } + + /** + *

    The Add On subscription ID to delete.

    + */ + inline void SetAddonSubscriptionId(Aws::String&& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = std::move(value); } + + /** + *

    The Add On subscription ID to delete.

    + */ + inline void SetAddonSubscriptionId(const char* value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId.assign(value); } + + /** + *

    The Add On subscription ID to delete.

    + */ + inline DeleteAddonSubscriptionRequest& WithAddonSubscriptionId(const Aws::String& value) { SetAddonSubscriptionId(value); return *this;} + + /** + *

    The Add On subscription ID to delete.

    + */ + inline DeleteAddonSubscriptionRequest& WithAddonSubscriptionId(Aws::String&& value) { SetAddonSubscriptionId(std::move(value)); return *this;} + + /** + *

    The Add On subscription ID to delete.

    + */ + inline DeleteAddonSubscriptionRequest& WithAddonSubscriptionId(const char* value) { SetAddonSubscriptionId(value); return *this;} + + private: + + Aws::String m_addonSubscriptionId; + bool m_addonSubscriptionIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonSubscriptionResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonSubscriptionResult.h new file mode 100644 index 00000000000..c26e1b58ac0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteAddonSubscriptionResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class DeleteAddonSubscriptionResult + { + public: + AWS_MAILMANAGER_API DeleteAddonSubscriptionResult(); + AWS_MAILMANAGER_API DeleteAddonSubscriptionResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API DeleteAddonSubscriptionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DeleteAddonSubscriptionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteAddonSubscriptionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteAddonSubscriptionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteArchiveRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteArchiveRequest.h new file mode 100644 index 00000000000..0b7d984d15d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteArchiveRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to initiate deletion of an email archive.

    See + * Also:

    AWS + * API Reference

    + */ + class DeleteArchiveRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API DeleteArchiveRequest(); + + // 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 "DeleteArchive"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the archive to delete.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive to delete.

    + */ + inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; } + + /** + *

    The identifier of the archive to delete.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; } + + /** + *

    The identifier of the archive to delete.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive to delete.

    + */ + inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); } + + /** + *

    The identifier of the archive to delete.

    + */ + inline DeleteArchiveRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive to delete.

    + */ + inline DeleteArchiveRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive to delete.

    + */ + inline DeleteArchiveRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + private: + + Aws::String m_archiveId; + bool m_archiveIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteArchiveResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteArchiveResult.h new file mode 100644 index 00000000000..df82046ad1d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteArchiveResult.h @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response indicating if the archive deletion was successfully + * initiated.

    On success, returns an HTTP 200 status code. On failure, + * returns an error message.

    See Also:

    AWS + * API Reference

    + */ + class DeleteArchiveResult + { + public: + AWS_MAILMANAGER_API DeleteArchiveResult(); + AWS_MAILMANAGER_API DeleteArchiveResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API DeleteArchiveResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DeleteArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteIngressPointRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteIngressPointRequest.h new file mode 100644 index 00000000000..88378c1b986 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteIngressPointRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class DeleteIngressPointRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API DeleteIngressPointRequest(); + + // 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 "DeleteIngressPoint"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the ingress endpoint resource that you want to delete.

    + */ + inline const Aws::String& GetIngressPointId() const{ return m_ingressPointId; } + + /** + *

    The identifier of the ingress endpoint resource that you want to delete.

    + */ + inline bool IngressPointIdHasBeenSet() const { return m_ingressPointIdHasBeenSet; } + + /** + *

    The identifier of the ingress endpoint resource that you want to delete.

    + */ + inline void SetIngressPointId(const Aws::String& value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId = value; } + + /** + *

    The identifier of the ingress endpoint resource that you want to delete.

    + */ + inline void SetIngressPointId(Aws::String&& value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId = std::move(value); } + + /** + *

    The identifier of the ingress endpoint resource that you want to delete.

    + */ + inline void SetIngressPointId(const char* value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId.assign(value); } + + /** + *

    The identifier of the ingress endpoint resource that you want to delete.

    + */ + inline DeleteIngressPointRequest& WithIngressPointId(const Aws::String& value) { SetIngressPointId(value); return *this;} + + /** + *

    The identifier of the ingress endpoint resource that you want to delete.

    + */ + inline DeleteIngressPointRequest& WithIngressPointId(Aws::String&& value) { SetIngressPointId(std::move(value)); return *this;} + + /** + *

    The identifier of the ingress endpoint resource that you want to delete.

    + */ + inline DeleteIngressPointRequest& WithIngressPointId(const char* value) { SetIngressPointId(value); return *this;} + + private: + + Aws::String m_ingressPointId; + bool m_ingressPointIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteIngressPointResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteIngressPointResult.h new file mode 100644 index 00000000000..5348105cefc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteIngressPointResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class DeleteIngressPointResult + { + public: + AWS_MAILMANAGER_API DeleteIngressPointResult(); + AWS_MAILMANAGER_API DeleteIngressPointResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API DeleteIngressPointResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DeleteIngressPointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteIngressPointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteIngressPointResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRelayRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRelayRequest.h new file mode 100644 index 00000000000..6d521e0e406 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRelayRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class DeleteRelayRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API DeleteRelayRequest(); + + // 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 "DeleteRelay"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The unique relay identifier.

    + */ + inline const Aws::String& GetRelayId() const{ return m_relayId; } + + /** + *

    The unique relay identifier.

    + */ + inline bool RelayIdHasBeenSet() const { return m_relayIdHasBeenSet; } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(const Aws::String& value) { m_relayIdHasBeenSet = true; m_relayId = value; } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(Aws::String&& value) { m_relayIdHasBeenSet = true; m_relayId = std::move(value); } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(const char* value) { m_relayIdHasBeenSet = true; m_relayId.assign(value); } + + /** + *

    The unique relay identifier.

    + */ + inline DeleteRelayRequest& WithRelayId(const Aws::String& value) { SetRelayId(value); return *this;} + + /** + *

    The unique relay identifier.

    + */ + inline DeleteRelayRequest& WithRelayId(Aws::String&& value) { SetRelayId(std::move(value)); return *this;} + + /** + *

    The unique relay identifier.

    + */ + inline DeleteRelayRequest& WithRelayId(const char* value) { SetRelayId(value); return *this;} + + private: + + Aws::String m_relayId; + bool m_relayIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRelayResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRelayResult.h new file mode 100644 index 00000000000..d61dd033219 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRelayResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class DeleteRelayResult + { + public: + AWS_MAILMANAGER_API DeleteRelayResult(); + AWS_MAILMANAGER_API DeleteRelayResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API DeleteRelayResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DeleteRelayResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteRelayResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteRelayResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRuleSetRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRuleSetRequest.h new file mode 100644 index 00000000000..2feaa9d6bac --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRuleSetRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class DeleteRuleSetRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API DeleteRuleSetRequest(); + + // 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 "DeleteRuleSet"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of an existing rule set resource to delete.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of an existing rule set resource to delete.

    + */ + inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; } + + /** + *

    The identifier of an existing rule set resource to delete.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = value; } + + /** + *

    The identifier of an existing rule set resource to delete.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::move(value); } + + /** + *

    The identifier of an existing rule set resource to delete.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId.assign(value); } + + /** + *

    The identifier of an existing rule set resource to delete.

    + */ + inline DeleteRuleSetRequest& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of an existing rule set resource to delete.

    + */ + inline DeleteRuleSetRequest& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of an existing rule set resource to delete.

    + */ + inline DeleteRuleSetRequest& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + private: + + Aws::String m_ruleSetId; + bool m_ruleSetIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRuleSetResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRuleSetResult.h new file mode 100644 index 00000000000..1b9949a7c4d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteRuleSetResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class DeleteRuleSetResult + { + public: + AWS_MAILMANAGER_API DeleteRuleSetResult(); + AWS_MAILMANAGER_API DeleteRuleSetResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API DeleteRuleSetResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DeleteRuleSetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteRuleSetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteRuleSetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteTrafficPolicyRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteTrafficPolicyRequest.h new file mode 100644 index 00000000000..2713d825441 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteTrafficPolicyRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class DeleteTrafficPolicyRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API DeleteTrafficPolicyRequest(); + + // 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 "DeleteTrafficPolicy"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the traffic policy that you want to delete.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of the traffic policy that you want to delete.

    + */ + inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; } + + /** + *

    The identifier of the traffic policy that you want to delete.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; } + + /** + *

    The identifier of the traffic policy that you want to delete.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of the traffic policy that you want to delete.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of the traffic policy that you want to delete.

    + */ + inline DeleteTrafficPolicyRequest& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of the traffic policy that you want to delete.

    + */ + inline DeleteTrafficPolicyRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of the traffic policy that you want to delete.

    + */ + inline DeleteTrafficPolicyRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + private: + + Aws::String m_trafficPolicyId; + bool m_trafficPolicyIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteTrafficPolicyResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteTrafficPolicyResult.h new file mode 100644 index 00000000000..e711775724d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeleteTrafficPolicyResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class DeleteTrafficPolicyResult + { + public: + AWS_MAILMANAGER_API DeleteTrafficPolicyResult(); + AWS_MAILMANAGER_API DeleteTrafficPolicyResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API DeleteTrafficPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline DeleteTrafficPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline DeleteTrafficPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline DeleteTrafficPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeliverToMailboxAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeliverToMailboxAction.h new file mode 100644 index 00000000000..82bea56280e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DeliverToMailboxAction.h @@ -0,0 +1,195 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    This action to delivers an email to a mailbox.

    See Also:

    AWS + * API Reference

    + */ + class DeliverToMailboxAction + { + public: + AWS_MAILMANAGER_API DeliverToMailboxAction(); + AWS_MAILMANAGER_API DeliverToMailboxAction(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API DeliverToMailboxAction& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the mailbox ARN is no longer + * valid.

    + */ + inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the mailbox ARN is no longer + * valid.

    + */ + inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the mailbox ARN is no longer + * valid.

    + */ + inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the mailbox ARN is no longer + * valid.

    + */ + inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the mailbox ARN is no longer + * valid.

    + */ + inline DeliverToMailboxAction& WithActionFailurePolicy(const ActionFailurePolicy& value) { SetActionFailurePolicy(value); return *this;} + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the mailbox ARN is no longer + * valid.

    + */ + inline DeliverToMailboxAction& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to.

    + */ + inline const Aws::String& GetMailboxArn() const{ return m_mailboxArn; } + + /** + *

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to.

    + */ + inline bool MailboxArnHasBeenSet() const { return m_mailboxArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to.

    + */ + inline void SetMailboxArn(const Aws::String& value) { m_mailboxArnHasBeenSet = true; m_mailboxArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to.

    + */ + inline void SetMailboxArn(Aws::String&& value) { m_mailboxArnHasBeenSet = true; m_mailboxArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to.

    + */ + inline void SetMailboxArn(const char* value) { m_mailboxArnHasBeenSet = true; m_mailboxArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to.

    + */ + inline DeliverToMailboxAction& WithMailboxArn(const Aws::String& value) { SetMailboxArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to.

    + */ + inline DeliverToMailboxAction& WithMailboxArn(Aws::String&& value) { SetMailboxArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the + * email to.

    + */ + inline DeliverToMailboxAction& WithMailboxArn(const char* value) { SetMailboxArn(value); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * The role must have access to the workmail:DeliverToMailbox API.

    + */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * The role must have access to the workmail:DeliverToMailbox API.

    + */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * The role must have access to the workmail:DeliverToMailbox API.

    + */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * The role must have access to the workmail:DeliverToMailbox API.

    + */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * The role must have access to the workmail:DeliverToMailbox API.

    + */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * The role must have access to the workmail:DeliverToMailbox API.

    + */ + inline DeliverToMailboxAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * The role must have access to the workmail:DeliverToMailbox API.

    + */ + inline DeliverToMailboxAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. + * The role must have access to the workmail:DeliverToMailbox API.

    + */ + inline DeliverToMailboxAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + private: + + ActionFailurePolicy m_actionFailurePolicy; + bool m_actionFailurePolicyHasBeenSet = false; + + Aws::String m_mailboxArn; + bool m_mailboxArnHasBeenSet = false; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DropAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DropAction.h new file mode 100644 index 00000000000..036bc885c92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/DropAction.h @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    This action causes processing to stop and the email to be dropped. If the + * action applies only to certain recipients, only those recipients are dropped, + * and processing continues for other recipients.

    See Also:

    AWS + * API Reference

    + */ + class DropAction + { + public: + AWS_MAILMANAGER_API DropAction(); + AWS_MAILMANAGER_API DropAction(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API DropAction& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportDestinationConfiguration.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportDestinationConfiguration.h new file mode 100644 index 00000000000..4e80c70a258 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportDestinationConfiguration.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The destination configuration for delivering exported email + * data.

    See Also:

    AWS + * API Reference

    + */ + class ExportDestinationConfiguration + { + public: + AWS_MAILMANAGER_API ExportDestinationConfiguration(); + AWS_MAILMANAGER_API ExportDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ExportDestinationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    Configuration for delivering to an Amazon S3 bucket.

    + */ + inline const S3ExportDestinationConfiguration& GetS3() const{ return m_s3; } + + /** + *

    Configuration for delivering to an Amazon S3 bucket.

    + */ + inline bool S3HasBeenSet() const { return m_s3HasBeenSet; } + + /** + *

    Configuration for delivering to an Amazon S3 bucket.

    + */ + inline void SetS3(const S3ExportDestinationConfiguration& value) { m_s3HasBeenSet = true; m_s3 = value; } + + /** + *

    Configuration for delivering to an Amazon S3 bucket.

    + */ + inline void SetS3(S3ExportDestinationConfiguration&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); } + + /** + *

    Configuration for delivering to an Amazon S3 bucket.

    + */ + inline ExportDestinationConfiguration& WithS3(const S3ExportDestinationConfiguration& value) { SetS3(value); return *this;} + + /** + *

    Configuration for delivering to an Amazon S3 bucket.

    + */ + inline ExportDestinationConfiguration& WithS3(S3ExportDestinationConfiguration&& value) { SetS3(std::move(value)); return *this;} + + private: + + S3ExportDestinationConfiguration m_s3; + bool m_s3HasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportState.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportState.h new file mode 100644 index 00000000000..6187928eeab --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportState.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class ExportState + { + NOT_SET, + QUEUED, + PREPROCESSING, + PROCESSING, + COMPLETED, + FAILED, + CANCELLED + }; + +namespace ExportStateMapper +{ +AWS_MAILMANAGER_API ExportState GetExportStateForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForExportState(ExportState value); +} // namespace ExportStateMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportStatus.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportStatus.h new file mode 100644 index 00000000000..8f09bf3b04e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportStatus.h @@ -0,0 +1,192 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The current status of an archive export job.

    See Also:

    AWS + * API Reference

    + */ + class ExportStatus + { + public: + AWS_MAILMANAGER_API ExportStatus(); + AWS_MAILMANAGER_API ExportStatus(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ExportStatus& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The timestamp of when the export job completed (if finished).

    + */ + inline const Aws::Utils::DateTime& GetCompletionTimestamp() const{ return m_completionTimestamp; } + + /** + *

    The timestamp of when the export job completed (if finished).

    + */ + inline bool CompletionTimestampHasBeenSet() const { return m_completionTimestampHasBeenSet; } + + /** + *

    The timestamp of when the export job completed (if finished).

    + */ + inline void SetCompletionTimestamp(const Aws::Utils::DateTime& value) { m_completionTimestampHasBeenSet = true; m_completionTimestamp = value; } + + /** + *

    The timestamp of when the export job completed (if finished).

    + */ + inline void SetCompletionTimestamp(Aws::Utils::DateTime&& value) { m_completionTimestampHasBeenSet = true; m_completionTimestamp = std::move(value); } + + /** + *

    The timestamp of when the export job completed (if finished).

    + */ + inline ExportStatus& WithCompletionTimestamp(const Aws::Utils::DateTime& value) { SetCompletionTimestamp(value); return *this;} + + /** + *

    The timestamp of when the export job completed (if finished).

    + */ + inline ExportStatus& WithCompletionTimestamp(Aws::Utils::DateTime&& value) { SetCompletionTimestamp(std::move(value)); return *this;} + + + /** + *

    An error message if the export job failed.

    + */ + inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } + + /** + *

    An error message if the export job failed.

    + */ + inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } + + /** + *

    An error message if the export job failed.

    + */ + inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } + + /** + *

    An error message if the export job failed.

    + */ + inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } + + /** + *

    An error message if the export job failed.

    + */ + inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } + + /** + *

    An error message if the export job failed.

    + */ + inline ExportStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} + + /** + *

    An error message if the export job failed.

    + */ + inline ExportStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} + + /** + *

    An error message if the export job failed.

    + */ + inline ExportStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} + + + /** + *

    The current state of the export job.

    + */ + inline const ExportState& GetState() const{ return m_state; } + + /** + *

    The current state of the export job.

    + */ + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + + /** + *

    The current state of the export job.

    + */ + inline void SetState(const ExportState& value) { m_stateHasBeenSet = true; m_state = value; } + + /** + *

    The current state of the export job.

    + */ + inline void SetState(ExportState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + + /** + *

    The current state of the export job.

    + */ + inline ExportStatus& WithState(const ExportState& value) { SetState(value); return *this;} + + /** + *

    The current state of the export job.

    + */ + inline ExportStatus& WithState(ExportState&& value) { SetState(std::move(value)); return *this;} + + + /** + *

    The timestamp of when the export job was submitted.

    + */ + inline const Aws::Utils::DateTime& GetSubmissionTimestamp() const{ return m_submissionTimestamp; } + + /** + *

    The timestamp of when the export job was submitted.

    + */ + inline bool SubmissionTimestampHasBeenSet() const { return m_submissionTimestampHasBeenSet; } + + /** + *

    The timestamp of when the export job was submitted.

    + */ + inline void SetSubmissionTimestamp(const Aws::Utils::DateTime& value) { m_submissionTimestampHasBeenSet = true; m_submissionTimestamp = value; } + + /** + *

    The timestamp of when the export job was submitted.

    + */ + inline void SetSubmissionTimestamp(Aws::Utils::DateTime&& value) { m_submissionTimestampHasBeenSet = true; m_submissionTimestamp = std::move(value); } + + /** + *

    The timestamp of when the export job was submitted.

    + */ + inline ExportStatus& WithSubmissionTimestamp(const Aws::Utils::DateTime& value) { SetSubmissionTimestamp(value); return *this;} + + /** + *

    The timestamp of when the export job was submitted.

    + */ + inline ExportStatus& WithSubmissionTimestamp(Aws::Utils::DateTime&& value) { SetSubmissionTimestamp(std::move(value)); return *this;} + + private: + + Aws::Utils::DateTime m_completionTimestamp; + bool m_completionTimestampHasBeenSet = false; + + Aws::String m_errorMessage; + bool m_errorMessageHasBeenSet = false; + + ExportState m_state; + bool m_stateHasBeenSet = false; + + Aws::Utils::DateTime m_submissionTimestamp; + bool m_submissionTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportSummary.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportSummary.h new file mode 100644 index 00000000000..6cbae6fb4dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ExportSummary.h @@ -0,0 +1,123 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    Summary statuses of an archive export job.

    See Also:

    AWS + * API Reference

    + */ + class ExportSummary + { + public: + AWS_MAILMANAGER_API ExportSummary(); + AWS_MAILMANAGER_API ExportSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ExportSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The unique identifier of the export job.

    + */ + inline const Aws::String& GetExportId() const{ return m_exportId; } + + /** + *

    The unique identifier of the export job.

    + */ + inline bool ExportIdHasBeenSet() const { return m_exportIdHasBeenSet; } + + /** + *

    The unique identifier of the export job.

    + */ + inline void SetExportId(const Aws::String& value) { m_exportIdHasBeenSet = true; m_exportId = value; } + + /** + *

    The unique identifier of the export job.

    + */ + inline void SetExportId(Aws::String&& value) { m_exportIdHasBeenSet = true; m_exportId = std::move(value); } + + /** + *

    The unique identifier of the export job.

    + */ + inline void SetExportId(const char* value) { m_exportIdHasBeenSet = true; m_exportId.assign(value); } + + /** + *

    The unique identifier of the export job.

    + */ + inline ExportSummary& WithExportId(const Aws::String& value) { SetExportId(value); return *this;} + + /** + *

    The unique identifier of the export job.

    + */ + inline ExportSummary& WithExportId(Aws::String&& value) { SetExportId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the export job.

    + */ + inline ExportSummary& WithExportId(const char* value) { SetExportId(value); return *this;} + + + /** + *

    The current status of the export job.

    + */ + inline const ExportStatus& GetStatus() const{ return m_status; } + + /** + *

    The current status of the export job.

    + */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

    The current status of the export job.

    + */ + inline void SetStatus(const ExportStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

    The current status of the export job.

    + */ + inline void SetStatus(ExportStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

    The current status of the export job.

    + */ + inline ExportSummary& WithStatus(const ExportStatus& value) { SetStatus(value); return *this;} + + /** + *

    The current status of the export job.

    + */ + inline ExportSummary& WithStatus(ExportStatus&& value) { SetStatus(std::move(value)); return *this;} + + private: + + Aws::String m_exportId; + bool m_exportIdHasBeenSet = false; + + ExportStatus m_status; + bool m_statusHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonInstanceRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonInstanceRequest.h new file mode 100644 index 00000000000..cf7cb03c294 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonInstanceRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class GetAddonInstanceRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetAddonInstanceRequest(); + + // 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 "GetAddonInstance"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Add On instance ID to retrieve information for.

    + */ + inline const Aws::String& GetAddonInstanceId() const{ return m_addonInstanceId; } + + /** + *

    The Add On instance ID to retrieve information for.

    + */ + inline bool AddonInstanceIdHasBeenSet() const { return m_addonInstanceIdHasBeenSet; } + + /** + *

    The Add On instance ID to retrieve information for.

    + */ + inline void SetAddonInstanceId(const Aws::String& value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId = value; } + + /** + *

    The Add On instance ID to retrieve information for.

    + */ + inline void SetAddonInstanceId(Aws::String&& value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId = std::move(value); } + + /** + *

    The Add On instance ID to retrieve information for.

    + */ + inline void SetAddonInstanceId(const char* value) { m_addonInstanceIdHasBeenSet = true; m_addonInstanceId.assign(value); } + + /** + *

    The Add On instance ID to retrieve information for.

    + */ + inline GetAddonInstanceRequest& WithAddonInstanceId(const Aws::String& value) { SetAddonInstanceId(value); return *this;} + + /** + *

    The Add On instance ID to retrieve information for.

    + */ + inline GetAddonInstanceRequest& WithAddonInstanceId(Aws::String&& value) { SetAddonInstanceId(std::move(value)); return *this;} + + /** + *

    The Add On instance ID to retrieve information for.

    + */ + inline GetAddonInstanceRequest& WithAddonInstanceId(const char* value) { SetAddonInstanceId(value); return *this;} + + private: + + Aws::String m_addonInstanceId; + bool m_addonInstanceIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonInstanceResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonInstanceResult.h new file mode 100644 index 00000000000..e90ccf4a3a4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonInstanceResult.h @@ -0,0 +1,213 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class GetAddonInstanceResult + { + public: + AWS_MAILMANAGER_API GetAddonInstanceResult(); + AWS_MAILMANAGER_API GetAddonInstanceResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetAddonInstanceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline const Aws::String& GetAddonInstanceArn() const{ return m_addonInstanceArn; } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline void SetAddonInstanceArn(const Aws::String& value) { m_addonInstanceArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline void SetAddonInstanceArn(Aws::String&& value) { m_addonInstanceArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline void SetAddonInstanceArn(const char* value) { m_addonInstanceArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline GetAddonInstanceResult& WithAddonInstanceArn(const Aws::String& value) { SetAddonInstanceArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline GetAddonInstanceResult& WithAddonInstanceArn(Aws::String&& value) { SetAddonInstanceArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the Add On instance.

    + */ + inline GetAddonInstanceResult& WithAddonInstanceArn(const char* value) { SetAddonInstanceArn(value); return *this;} + + + /** + *

    The name of the Add On provider associated to the subscription of the + * instance.

    + */ + inline const Aws::String& GetAddonName() const{ return m_addonName; } + + /** + *

    The name of the Add On provider associated to the subscription of the + * instance.

    + */ + inline void SetAddonName(const Aws::String& value) { m_addonName = value; } + + /** + *

    The name of the Add On provider associated to the subscription of the + * instance.

    + */ + inline void SetAddonName(Aws::String&& value) { m_addonName = std::move(value); } + + /** + *

    The name of the Add On provider associated to the subscription of the + * instance.

    + */ + inline void SetAddonName(const char* value) { m_addonName.assign(value); } + + /** + *

    The name of the Add On provider associated to the subscription of the + * instance.

    + */ + inline GetAddonInstanceResult& WithAddonName(const Aws::String& value) { SetAddonName(value); return *this;} + + /** + *

    The name of the Add On provider associated to the subscription of the + * instance.

    + */ + inline GetAddonInstanceResult& WithAddonName(Aws::String&& value) { SetAddonName(std::move(value)); return *this;} + + /** + *

    The name of the Add On provider associated to the subscription of the + * instance.

    + */ + inline GetAddonInstanceResult& WithAddonName(const char* value) { SetAddonName(value); return *this;} + + + /** + *

    The subscription ID associated to the instance.

    + */ + inline const Aws::String& GetAddonSubscriptionId() const{ return m_addonSubscriptionId; } + + /** + *

    The subscription ID associated to the instance.

    + */ + inline void SetAddonSubscriptionId(const Aws::String& value) { m_addonSubscriptionId = value; } + + /** + *

    The subscription ID associated to the instance.

    + */ + inline void SetAddonSubscriptionId(Aws::String&& value) { m_addonSubscriptionId = std::move(value); } + + /** + *

    The subscription ID associated to the instance.

    + */ + inline void SetAddonSubscriptionId(const char* value) { m_addonSubscriptionId.assign(value); } + + /** + *

    The subscription ID associated to the instance.

    + */ + inline GetAddonInstanceResult& WithAddonSubscriptionId(const Aws::String& value) { SetAddonSubscriptionId(value); return *this;} + + /** + *

    The subscription ID associated to the instance.

    + */ + inline GetAddonInstanceResult& WithAddonSubscriptionId(Aws::String&& value) { SetAddonSubscriptionId(std::move(value)); return *this;} + + /** + *

    The subscription ID associated to the instance.

    + */ + inline GetAddonInstanceResult& WithAddonSubscriptionId(const char* value) { SetAddonSubscriptionId(value); return *this;} + + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline GetAddonInstanceResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the Add On instance was created.

    + */ + inline GetAddonInstanceResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetAddonInstanceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetAddonInstanceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetAddonInstanceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_addonInstanceArn; + + Aws::String m_addonName; + + Aws::String m_addonSubscriptionId; + + Aws::Utils::DateTime m_createdTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonSubscriptionRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonSubscriptionRequest.h new file mode 100644 index 00000000000..01551380add --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonSubscriptionRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class GetAddonSubscriptionRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetAddonSubscriptionRequest(); + + // 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 "GetAddonSubscription"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Add On subscription ID to retrieve information for.

    + */ + inline const Aws::String& GetAddonSubscriptionId() const{ return m_addonSubscriptionId; } + + /** + *

    The Add On subscription ID to retrieve information for.

    + */ + inline bool AddonSubscriptionIdHasBeenSet() const { return m_addonSubscriptionIdHasBeenSet; } + + /** + *

    The Add On subscription ID to retrieve information for.

    + */ + inline void SetAddonSubscriptionId(const Aws::String& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = value; } + + /** + *

    The Add On subscription ID to retrieve information for.

    + */ + inline void SetAddonSubscriptionId(Aws::String&& value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId = std::move(value); } + + /** + *

    The Add On subscription ID to retrieve information for.

    + */ + inline void SetAddonSubscriptionId(const char* value) { m_addonSubscriptionIdHasBeenSet = true; m_addonSubscriptionId.assign(value); } + + /** + *

    The Add On subscription ID to retrieve information for.

    + */ + inline GetAddonSubscriptionRequest& WithAddonSubscriptionId(const Aws::String& value) { SetAddonSubscriptionId(value); return *this;} + + /** + *

    The Add On subscription ID to retrieve information for.

    + */ + inline GetAddonSubscriptionRequest& WithAddonSubscriptionId(Aws::String&& value) { SetAddonSubscriptionId(std::move(value)); return *this;} + + /** + *

    The Add On subscription ID to retrieve information for.

    + */ + inline GetAddonSubscriptionRequest& WithAddonSubscriptionId(const char* value) { SetAddonSubscriptionId(value); return *this;} + + private: + + Aws::String m_addonSubscriptionId; + bool m_addonSubscriptionIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonSubscriptionResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonSubscriptionResult.h new file mode 100644 index 00000000000..e7d7edb7bd1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetAddonSubscriptionResult.h @@ -0,0 +1,168 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class GetAddonSubscriptionResult + { + public: + AWS_MAILMANAGER_API GetAddonSubscriptionResult(); + AWS_MAILMANAGER_API GetAddonSubscriptionResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetAddonSubscriptionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The name of the Add On for the subscription.

    + */ + inline const Aws::String& GetAddonName() const{ return m_addonName; } + + /** + *

    The name of the Add On for the subscription.

    + */ + inline void SetAddonName(const Aws::String& value) { m_addonName = value; } + + /** + *

    The name of the Add On for the subscription.

    + */ + inline void SetAddonName(Aws::String&& value) { m_addonName = std::move(value); } + + /** + *

    The name of the Add On for the subscription.

    + */ + inline void SetAddonName(const char* value) { m_addonName.assign(value); } + + /** + *

    The name of the Add On for the subscription.

    + */ + inline GetAddonSubscriptionResult& WithAddonName(const Aws::String& value) { SetAddonName(value); return *this;} + + /** + *

    The name of the Add On for the subscription.

    + */ + inline GetAddonSubscriptionResult& WithAddonName(Aws::String&& value) { SetAddonName(std::move(value)); return *this;} + + /** + *

    The name of the Add On for the subscription.

    + */ + inline GetAddonSubscriptionResult& WithAddonName(const char* value) { SetAddonName(value); return *this;} + + + /** + *

    Amazon Resource Name (ARN) for the subscription.

    + */ + inline const Aws::String& GetAddonSubscriptionArn() const{ return m_addonSubscriptionArn; } + + /** + *

    Amazon Resource Name (ARN) for the subscription.

    + */ + inline void SetAddonSubscriptionArn(const Aws::String& value) { m_addonSubscriptionArn = value; } + + /** + *

    Amazon Resource Name (ARN) for the subscription.

    + */ + inline void SetAddonSubscriptionArn(Aws::String&& value) { m_addonSubscriptionArn = std::move(value); } + + /** + *

    Amazon Resource Name (ARN) for the subscription.

    + */ + inline void SetAddonSubscriptionArn(const char* value) { m_addonSubscriptionArn.assign(value); } + + /** + *

    Amazon Resource Name (ARN) for the subscription.

    + */ + inline GetAddonSubscriptionResult& WithAddonSubscriptionArn(const Aws::String& value) { SetAddonSubscriptionArn(value); return *this;} + + /** + *

    Amazon Resource Name (ARN) for the subscription.

    + */ + inline GetAddonSubscriptionResult& WithAddonSubscriptionArn(Aws::String&& value) { SetAddonSubscriptionArn(std::move(value)); return *this;} + + /** + *

    Amazon Resource Name (ARN) for the subscription.

    + */ + inline GetAddonSubscriptionResult& WithAddonSubscriptionArn(const char* value) { SetAddonSubscriptionArn(value); return *this;} + + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline GetAddonSubscriptionResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the Add On subscription was created.

    + */ + inline GetAddonSubscriptionResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetAddonSubscriptionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetAddonSubscriptionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetAddonSubscriptionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_addonName; + + Aws::String m_addonSubscriptionArn; + + Aws::Utils::DateTime m_createdTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveExportRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveExportRequest.h new file mode 100644 index 00000000000..c5204cf7bd6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveExportRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to retrieve details of a specific archive export + * job.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveExportRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetArchiveExportRequest(); + + // 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 "GetArchiveExport"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the export job to get details for.

    + */ + inline const Aws::String& GetExportId() const{ return m_exportId; } + + /** + *

    The identifier of the export job to get details for.

    + */ + inline bool ExportIdHasBeenSet() const { return m_exportIdHasBeenSet; } + + /** + *

    The identifier of the export job to get details for.

    + */ + inline void SetExportId(const Aws::String& value) { m_exportIdHasBeenSet = true; m_exportId = value; } + + /** + *

    The identifier of the export job to get details for.

    + */ + inline void SetExportId(Aws::String&& value) { m_exportIdHasBeenSet = true; m_exportId = std::move(value); } + + /** + *

    The identifier of the export job to get details for.

    + */ + inline void SetExportId(const char* value) { m_exportIdHasBeenSet = true; m_exportId.assign(value); } + + /** + *

    The identifier of the export job to get details for.

    + */ + inline GetArchiveExportRequest& WithExportId(const Aws::String& value) { SetExportId(value); return *this;} + + /** + *

    The identifier of the export job to get details for.

    + */ + inline GetArchiveExportRequest& WithExportId(Aws::String&& value) { SetExportId(std::move(value)); return *this;} + + /** + *

    The identifier of the export job to get details for.

    + */ + inline GetArchiveExportRequest& WithExportId(const char* value) { SetExportId(value); return *this;} + + private: + + Aws::String m_exportId; + bool m_exportIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveExportResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveExportResult.h new file mode 100644 index 00000000000..3c1b1c1d0fa --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveExportResult.h @@ -0,0 +1,269 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing details of the specified archive export + * job.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveExportResult + { + public: + AWS_MAILMANAGER_API GetArchiveExportResult(); + AWS_MAILMANAGER_API GetArchiveExportResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetArchiveExportResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The identifier of the archive the email export was performed from.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive the email export was performed from.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; } + + /** + *

    The identifier of the archive the email export was performed from.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive the email export was performed from.

    + */ + inline void SetArchiveId(const char* value) { m_archiveId.assign(value); } + + /** + *

    The identifier of the archive the email export was performed from.

    + */ + inline GetArchiveExportResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive the email export was performed from.

    + */ + inline GetArchiveExportResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive the email export was performed from.

    + */ + inline GetArchiveExportResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    Where the exported emails are being delivered.

    + */ + inline const ExportDestinationConfiguration& GetExportDestinationConfiguration() const{ return m_exportDestinationConfiguration; } + + /** + *

    Where the exported emails are being delivered.

    + */ + inline void SetExportDestinationConfiguration(const ExportDestinationConfiguration& value) { m_exportDestinationConfiguration = value; } + + /** + *

    Where the exported emails are being delivered.

    + */ + inline void SetExportDestinationConfiguration(ExportDestinationConfiguration&& value) { m_exportDestinationConfiguration = std::move(value); } + + /** + *

    Where the exported emails are being delivered.

    + */ + inline GetArchiveExportResult& WithExportDestinationConfiguration(const ExportDestinationConfiguration& value) { SetExportDestinationConfiguration(value); return *this;} + + /** + *

    Where the exported emails are being delivered.

    + */ + inline GetArchiveExportResult& WithExportDestinationConfiguration(ExportDestinationConfiguration&& value) { SetExportDestinationConfiguration(std::move(value)); return *this;} + + + /** + *

    The criteria used to filter emails included in the export.

    + */ + inline const ArchiveFilters& GetFilters() const{ return m_filters; } + + /** + *

    The criteria used to filter emails included in the export.

    + */ + inline void SetFilters(const ArchiveFilters& value) { m_filters = value; } + + /** + *

    The criteria used to filter emails included in the export.

    + */ + inline void SetFilters(ArchiveFilters&& value) { m_filters = std::move(value); } + + /** + *

    The criteria used to filter emails included in the export.

    + */ + inline GetArchiveExportResult& WithFilters(const ArchiveFilters& value) { SetFilters(value); return *this;} + + /** + *

    The criteria used to filter emails included in the export.

    + */ + inline GetArchiveExportResult& WithFilters(ArchiveFilters&& value) { SetFilters(std::move(value)); return *this;} + + + /** + *

    The start of the timestamp range the exported emails cover.

    + */ + inline const Aws::Utils::DateTime& GetFromTimestamp() const{ return m_fromTimestamp; } + + /** + *

    The start of the timestamp range the exported emails cover.

    + */ + inline void SetFromTimestamp(const Aws::Utils::DateTime& value) { m_fromTimestamp = value; } + + /** + *

    The start of the timestamp range the exported emails cover.

    + */ + inline void SetFromTimestamp(Aws::Utils::DateTime&& value) { m_fromTimestamp = std::move(value); } + + /** + *

    The start of the timestamp range the exported emails cover.

    + */ + inline GetArchiveExportResult& WithFromTimestamp(const Aws::Utils::DateTime& value) { SetFromTimestamp(value); return *this;} + + /** + *

    The start of the timestamp range the exported emails cover.

    + */ + inline GetArchiveExportResult& WithFromTimestamp(Aws::Utils::DateTime&& value) { SetFromTimestamp(std::move(value)); return *this;} + + + /** + *

    The maximum number of email items included in the export.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The maximum number of email items included in the export.

    + */ + inline void SetMaxResults(int value) { m_maxResults = value; } + + /** + *

    The maximum number of email items included in the export.

    + */ + inline GetArchiveExportResult& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

    The current status of the export job.

    + */ + inline const ExportStatus& GetStatus() const{ return m_status; } + + /** + *

    The current status of the export job.

    + */ + inline void SetStatus(const ExportStatus& value) { m_status = value; } + + /** + *

    The current status of the export job.

    + */ + inline void SetStatus(ExportStatus&& value) { m_status = std::move(value); } + + /** + *

    The current status of the export job.

    + */ + inline GetArchiveExportResult& WithStatus(const ExportStatus& value) { SetStatus(value); return *this;} + + /** + *

    The current status of the export job.

    + */ + inline GetArchiveExportResult& WithStatus(ExportStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

    The end of the date range the exported emails cover.

    + */ + inline const Aws::Utils::DateTime& GetToTimestamp() const{ return m_toTimestamp; } + + /** + *

    The end of the date range the exported emails cover.

    + */ + inline void SetToTimestamp(const Aws::Utils::DateTime& value) { m_toTimestamp = value; } + + /** + *

    The end of the date range the exported emails cover.

    + */ + inline void SetToTimestamp(Aws::Utils::DateTime&& value) { m_toTimestamp = std::move(value); } + + /** + *

    The end of the date range the exported emails cover.

    + */ + inline GetArchiveExportResult& WithToTimestamp(const Aws::Utils::DateTime& value) { SetToTimestamp(value); return *this;} + + /** + *

    The end of the date range the exported emails cover.

    + */ + inline GetArchiveExportResult& WithToTimestamp(Aws::Utils::DateTime&& value) { SetToTimestamp(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetArchiveExportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetArchiveExportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetArchiveExportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_archiveId; + + ExportDestinationConfiguration m_exportDestinationConfiguration; + + ArchiveFilters m_filters; + + Aws::Utils::DateTime m_fromTimestamp; + + int m_maxResults; + + ExportStatus m_status; + + Aws::Utils::DateTime m_toTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageContentRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageContentRequest.h new file mode 100644 index 00000000000..fab334619e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageContentRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to get the textual content of a specific email message stored in + * an archive.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveMessageContentRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetArchiveMessageContentRequest(); + + // 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 "GetArchiveMessageContent"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The unique identifier of the archived email message.

    + */ + inline const Aws::String& GetArchivedMessageId() const{ return m_archivedMessageId; } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline bool ArchivedMessageIdHasBeenSet() const { return m_archivedMessageIdHasBeenSet; } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline void SetArchivedMessageId(const Aws::String& value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId = value; } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline void SetArchivedMessageId(Aws::String&& value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId = std::move(value); } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline void SetArchivedMessageId(const char* value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId.assign(value); } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline GetArchiveMessageContentRequest& WithArchivedMessageId(const Aws::String& value) { SetArchivedMessageId(value); return *this;} + + /** + *

    The unique identifier of the archived email message.

    + */ + inline GetArchiveMessageContentRequest& WithArchivedMessageId(Aws::String&& value) { SetArchivedMessageId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the archived email message.

    + */ + inline GetArchiveMessageContentRequest& WithArchivedMessageId(const char* value) { SetArchivedMessageId(value); return *this;} + + private: + + Aws::String m_archivedMessageId; + bool m_archivedMessageIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageContentResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageContentResult.h new file mode 100644 index 00000000000..8af5f223bc0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageContentResult.h @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing the textual content of the requested archived email + * message.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveMessageContentResult + { + public: + AWS_MAILMANAGER_API GetArchiveMessageContentResult(); + AWS_MAILMANAGER_API GetArchiveMessageContentResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetArchiveMessageContentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The textual body content of the email message.

    + */ + inline const MessageBody& GetBody() const{ return m_body; } + + /** + *

    The textual body content of the email message.

    + */ + inline void SetBody(const MessageBody& value) { m_body = value; } + + /** + *

    The textual body content of the email message.

    + */ + inline void SetBody(MessageBody&& value) { m_body = std::move(value); } + + /** + *

    The textual body content of the email message.

    + */ + inline GetArchiveMessageContentResult& WithBody(const MessageBody& value) { SetBody(value); return *this;} + + /** + *

    The textual body content of the email message.

    + */ + inline GetArchiveMessageContentResult& WithBody(MessageBody&& value) { SetBody(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetArchiveMessageContentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetArchiveMessageContentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetArchiveMessageContentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + MessageBody m_body; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageRequest.h new file mode 100644 index 00000000000..aaec800eddc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to get details of a specific email message stored in an + * archive.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveMessageRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetArchiveMessageRequest(); + + // 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 "GetArchiveMessage"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The unique identifier of the archived email message.

    + */ + inline const Aws::String& GetArchivedMessageId() const{ return m_archivedMessageId; } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline bool ArchivedMessageIdHasBeenSet() const { return m_archivedMessageIdHasBeenSet; } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline void SetArchivedMessageId(const Aws::String& value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId = value; } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline void SetArchivedMessageId(Aws::String&& value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId = std::move(value); } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline void SetArchivedMessageId(const char* value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId.assign(value); } + + /** + *

    The unique identifier of the archived email message.

    + */ + inline GetArchiveMessageRequest& WithArchivedMessageId(const Aws::String& value) { SetArchivedMessageId(value); return *this;} + + /** + *

    The unique identifier of the archived email message.

    + */ + inline GetArchiveMessageRequest& WithArchivedMessageId(Aws::String&& value) { SetArchivedMessageId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the archived email message.

    + */ + inline GetArchiveMessageRequest& WithArchivedMessageId(const char* value) { SetArchivedMessageId(value); return *this;} + + private: + + Aws::String m_archivedMessageId; + bool m_archivedMessageIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageResult.h new file mode 100644 index 00000000000..fdd909421a3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveMessageResult.h @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing details about the requested archived email + * message.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveMessageResult + { + public: + AWS_MAILMANAGER_API GetArchiveMessageResult(); + AWS_MAILMANAGER_API GetArchiveMessageResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetArchiveMessageResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    A pre-signed URL to temporarily download the full message content.

    + */ + inline const Aws::String& GetMessageDownloadLink() const{ return m_messageDownloadLink; } + + /** + *

    A pre-signed URL to temporarily download the full message content.

    + */ + inline void SetMessageDownloadLink(const Aws::String& value) { m_messageDownloadLink = value; } + + /** + *

    A pre-signed URL to temporarily download the full message content.

    + */ + inline void SetMessageDownloadLink(Aws::String&& value) { m_messageDownloadLink = std::move(value); } + + /** + *

    A pre-signed URL to temporarily download the full message content.

    + */ + inline void SetMessageDownloadLink(const char* value) { m_messageDownloadLink.assign(value); } + + /** + *

    A pre-signed URL to temporarily download the full message content.

    + */ + inline GetArchiveMessageResult& WithMessageDownloadLink(const Aws::String& value) { SetMessageDownloadLink(value); return *this;} + + /** + *

    A pre-signed URL to temporarily download the full message content.

    + */ + inline GetArchiveMessageResult& WithMessageDownloadLink(Aws::String&& value) { SetMessageDownloadLink(std::move(value)); return *this;} + + /** + *

    A pre-signed URL to temporarily download the full message content.

    + */ + inline GetArchiveMessageResult& WithMessageDownloadLink(const char* value) { SetMessageDownloadLink(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetArchiveMessageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetArchiveMessageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetArchiveMessageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_messageDownloadLink; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveRequest.h new file mode 100644 index 00000000000..415d4b2b2b6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to retrieve details of an email archive.

    See Also:

    + * AWS + * API Reference

    + */ + class GetArchiveRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetArchiveRequest(); + + // 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 "GetArchive"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the archive to retrieve.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive to retrieve.

    + */ + inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; } + + /** + *

    The identifier of the archive to retrieve.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; } + + /** + *

    The identifier of the archive to retrieve.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive to retrieve.

    + */ + inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); } + + /** + *

    The identifier of the archive to retrieve.

    + */ + inline GetArchiveRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive to retrieve.

    + */ + inline GetArchiveRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive to retrieve.

    + */ + inline GetArchiveRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + private: + + Aws::String m_archiveId; + bool m_archiveIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveResult.h new file mode 100644 index 00000000000..0e4dc2afc89 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveResult.h @@ -0,0 +1,363 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing details of the requested archive.

    See + * Also:

    AWS + * API Reference

    + */ + class GetArchiveResult + { + public: + AWS_MAILMANAGER_API GetArchiveResult(); + AWS_MAILMANAGER_API GetArchiveResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetArchiveResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The Amazon Resource Name (ARN) of the archive.

    + */ + inline const Aws::String& GetArchiveArn() const{ return m_archiveArn; } + + /** + *

    The Amazon Resource Name (ARN) of the archive.

    + */ + inline void SetArchiveArn(const Aws::String& value) { m_archiveArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the archive.

    + */ + inline void SetArchiveArn(Aws::String&& value) { m_archiveArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the archive.

    + */ + inline void SetArchiveArn(const char* value) { m_archiveArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the archive.

    + */ + inline GetArchiveResult& WithArchiveArn(const Aws::String& value) { SetArchiveArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the archive.

    + */ + inline GetArchiveResult& WithArchiveArn(Aws::String&& value) { SetArchiveArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the archive.

    + */ + inline GetArchiveResult& WithArchiveArn(const char* value) { SetArchiveArn(value); return *this;} + + + /** + *

    The unique identifier of the archive.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The unique identifier of the archive.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; } + + /** + *

    The unique identifier of the archive.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveId = std::move(value); } + + /** + *

    The unique identifier of the archive.

    + */ + inline void SetArchiveId(const char* value) { m_archiveId.assign(value); } + + /** + *

    The unique identifier of the archive.

    + */ + inline GetArchiveResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The unique identifier of the archive.

    + */ + inline GetArchiveResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the archive.

    + */ + inline GetArchiveResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    The unique name assigned to the archive.

    + */ + inline const Aws::String& GetArchiveName() const{ return m_archiveName; } + + /** + *

    The unique name assigned to the archive.

    + */ + inline void SetArchiveName(const Aws::String& value) { m_archiveName = value; } + + /** + *

    The unique name assigned to the archive.

    + */ + inline void SetArchiveName(Aws::String&& value) { m_archiveName = std::move(value); } + + /** + *

    The unique name assigned to the archive.

    + */ + inline void SetArchiveName(const char* value) { m_archiveName.assign(value); } + + /** + *

    The unique name assigned to the archive.

    + */ + inline GetArchiveResult& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;} + + /** + *

    The unique name assigned to the archive.

    + */ + inline GetArchiveResult& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;} + + /** + *

    The unique name assigned to the archive.

    + */ + inline GetArchiveResult& WithArchiveName(const char* value) { SetArchiveName(value); return *this;} + + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline const ArchiveState& GetArchiveState() const{ return m_archiveState; } + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline void SetArchiveState(const ArchiveState& value) { m_archiveState = value; } + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline void SetArchiveState(ArchiveState&& value) { m_archiveState = std::move(value); } + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline GetArchiveResult& WithArchiveState(const ArchiveState& value) { SetArchiveState(value); return *this;} + + /** + *

    The current state of the archive:

    • ACTIVE – The + * archive is ready and available for use.

    • + * PENDING_DELETION – The archive has been marked for deletion and + * will be permanently deleted in 30 days. No further modifications can be made in + * this state.

    + */ + inline GetArchiveResult& WithArchiveState(ArchiveState&& value) { SetArchiveState(std::move(value)); return *this;} + + + /** + *

    The timestamp of when the archive was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + + /** + *

    The timestamp of when the archive was created.

    + */ + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + + /** + *

    The timestamp of when the archive was created.

    + */ + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + + /** + *

    The timestamp of when the archive was created.

    + */ + inline GetArchiveResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the archive was created.

    + */ + inline GetArchiveResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the + * archive.

    + */ + inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the + * archive.

    + */ + inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the + * archive.

    + */ + inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the + * archive.

    + */ + inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the + * archive.

    + */ + inline GetArchiveResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the + * archive.

    + */ + inline GetArchiveResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the + * archive.

    + */ + inline GetArchiveResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} + + + /** + *

    The timestamp of when the archive was modified.

    + */ + inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } + + /** + *

    The timestamp of when the archive was modified.

    + */ + inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestamp = value; } + + /** + *

    The timestamp of when the archive was modified.

    + */ + inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestamp = std::move(value); } + + /** + *

    The timestamp of when the archive was modified.

    + */ + inline GetArchiveResult& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the archive was modified.

    + */ + inline GetArchiveResult& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} + + + /** + *

    The retention period for emails in this archive.

    + */ + inline const ArchiveRetention& GetRetention() const{ return m_retention; } + + /** + *

    The retention period for emails in this archive.

    + */ + inline void SetRetention(const ArchiveRetention& value) { m_retention = value; } + + /** + *

    The retention period for emails in this archive.

    + */ + inline void SetRetention(ArchiveRetention&& value) { m_retention = std::move(value); } + + /** + *

    The retention period for emails in this archive.

    + */ + inline GetArchiveResult& WithRetention(const ArchiveRetention& value) { SetRetention(value); return *this;} + + /** + *

    The retention period for emails in this archive.

    + */ + inline GetArchiveResult& WithRetention(ArchiveRetention&& value) { SetRetention(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_archiveArn; + + Aws::String m_archiveId; + + Aws::String m_archiveName; + + ArchiveState m_archiveState; + + Aws::Utils::DateTime m_createdTimestamp; + + Aws::String m_kmsKeyArn; + + Aws::Utils::DateTime m_lastUpdatedTimestamp; + + ArchiveRetention m_retention; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchRequest.h new file mode 100644 index 00000000000..e68f05d6e89 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to retrieve details of a specific archive search + * job.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveSearchRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetArchiveSearchRequest(); + + // 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 "GetArchiveSearch"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the search job to get details for.

    + */ + inline const Aws::String& GetSearchId() const{ return m_searchId; } + + /** + *

    The identifier of the search job to get details for.

    + */ + inline bool SearchIdHasBeenSet() const { return m_searchIdHasBeenSet; } + + /** + *

    The identifier of the search job to get details for.

    + */ + inline void SetSearchId(const Aws::String& value) { m_searchIdHasBeenSet = true; m_searchId = value; } + + /** + *

    The identifier of the search job to get details for.

    + */ + inline void SetSearchId(Aws::String&& value) { m_searchIdHasBeenSet = true; m_searchId = std::move(value); } + + /** + *

    The identifier of the search job to get details for.

    + */ + inline void SetSearchId(const char* value) { m_searchIdHasBeenSet = true; m_searchId.assign(value); } + + /** + *

    The identifier of the search job to get details for.

    + */ + inline GetArchiveSearchRequest& WithSearchId(const Aws::String& value) { SetSearchId(value); return *this;} + + /** + *

    The identifier of the search job to get details for.

    + */ + inline GetArchiveSearchRequest& WithSearchId(Aws::String&& value) { SetSearchId(std::move(value)); return *this;} + + /** + *

    The identifier of the search job to get details for.

    + */ + inline GetArchiveSearchRequest& WithSearchId(const char* value) { SetSearchId(value); return *this;} + + private: + + Aws::String m_searchId; + bool m_searchIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResult.h new file mode 100644 index 00000000000..be283d42aa5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResult.h @@ -0,0 +1,240 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing details of the specified archive search + * job.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveSearchResult + { + public: + AWS_MAILMANAGER_API GetArchiveSearchResult(); + AWS_MAILMANAGER_API GetArchiveSearchResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetArchiveSearchResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The identifier of the archive the email search was performed in.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive the email search was performed in.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveId = value; } + + /** + *

    The identifier of the archive the email search was performed in.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive the email search was performed in.

    + */ + inline void SetArchiveId(const char* value) { m_archiveId.assign(value); } + + /** + *

    The identifier of the archive the email search was performed in.

    + */ + inline GetArchiveSearchResult& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive the email search was performed in.

    + */ + inline GetArchiveSearchResult& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive the email search was performed in.

    + */ + inline GetArchiveSearchResult& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    The criteria used to filter emails included in the search.

    + */ + inline const ArchiveFilters& GetFilters() const{ return m_filters; } + + /** + *

    The criteria used to filter emails included in the search.

    + */ + inline void SetFilters(const ArchiveFilters& value) { m_filters = value; } + + /** + *

    The criteria used to filter emails included in the search.

    + */ + inline void SetFilters(ArchiveFilters&& value) { m_filters = std::move(value); } + + /** + *

    The criteria used to filter emails included in the search.

    + */ + inline GetArchiveSearchResult& WithFilters(const ArchiveFilters& value) { SetFilters(value); return *this;} + + /** + *

    The criteria used to filter emails included in the search.

    + */ + inline GetArchiveSearchResult& WithFilters(ArchiveFilters&& value) { SetFilters(std::move(value)); return *this;} + + + /** + *

    The start timestamp of the range the searched emails cover.

    + */ + inline const Aws::Utils::DateTime& GetFromTimestamp() const{ return m_fromTimestamp; } + + /** + *

    The start timestamp of the range the searched emails cover.

    + */ + inline void SetFromTimestamp(const Aws::Utils::DateTime& value) { m_fromTimestamp = value; } + + /** + *

    The start timestamp of the range the searched emails cover.

    + */ + inline void SetFromTimestamp(Aws::Utils::DateTime&& value) { m_fromTimestamp = std::move(value); } + + /** + *

    The start timestamp of the range the searched emails cover.

    + */ + inline GetArchiveSearchResult& WithFromTimestamp(const Aws::Utils::DateTime& value) { SetFromTimestamp(value); return *this;} + + /** + *

    The start timestamp of the range the searched emails cover.

    + */ + inline GetArchiveSearchResult& WithFromTimestamp(Aws::Utils::DateTime&& value) { SetFromTimestamp(std::move(value)); return *this;} + + + /** + *

    The maximum number of search results to return.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The maximum number of search results to return.

    + */ + inline void SetMaxResults(int value) { m_maxResults = value; } + + /** + *

    The maximum number of search results to return.

    + */ + inline GetArchiveSearchResult& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

    The current status of the search job.

    + */ + inline const SearchStatus& GetStatus() const{ return m_status; } + + /** + *

    The current status of the search job.

    + */ + inline void SetStatus(const SearchStatus& value) { m_status = value; } + + /** + *

    The current status of the search job.

    + */ + inline void SetStatus(SearchStatus&& value) { m_status = std::move(value); } + + /** + *

    The current status of the search job.

    + */ + inline GetArchiveSearchResult& WithStatus(const SearchStatus& value) { SetStatus(value); return *this;} + + /** + *

    The current status of the search job.

    + */ + inline GetArchiveSearchResult& WithStatus(SearchStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

    The end timestamp of the range the searched emails cover.

    + */ + inline const Aws::Utils::DateTime& GetToTimestamp() const{ return m_toTimestamp; } + + /** + *

    The end timestamp of the range the searched emails cover.

    + */ + inline void SetToTimestamp(const Aws::Utils::DateTime& value) { m_toTimestamp = value; } + + /** + *

    The end timestamp of the range the searched emails cover.

    + */ + inline void SetToTimestamp(Aws::Utils::DateTime&& value) { m_toTimestamp = std::move(value); } + + /** + *

    The end timestamp of the range the searched emails cover.

    + */ + inline GetArchiveSearchResult& WithToTimestamp(const Aws::Utils::DateTime& value) { SetToTimestamp(value); return *this;} + + /** + *

    The end timestamp of the range the searched emails cover.

    + */ + inline GetArchiveSearchResult& WithToTimestamp(Aws::Utils::DateTime&& value) { SetToTimestamp(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetArchiveSearchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetArchiveSearchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetArchiveSearchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_archiveId; + + ArchiveFilters m_filters; + + Aws::Utils::DateTime m_fromTimestamp; + + int m_maxResults; + + SearchStatus m_status; + + Aws::Utils::DateTime m_toTimestamp; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResultsRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResultsRequest.h new file mode 100644 index 00000000000..5dcacac81c8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResultsRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to retrieve results from a completed archive search + * job.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveSearchResultsRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetArchiveSearchResultsRequest(); + + // 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 "GetArchiveSearchResults"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the completed search job.

    + */ + inline const Aws::String& GetSearchId() const{ return m_searchId; } + + /** + *

    The identifier of the completed search job.

    + */ + inline bool SearchIdHasBeenSet() const { return m_searchIdHasBeenSet; } + + /** + *

    The identifier of the completed search job.

    + */ + inline void SetSearchId(const Aws::String& value) { m_searchIdHasBeenSet = true; m_searchId = value; } + + /** + *

    The identifier of the completed search job.

    + */ + inline void SetSearchId(Aws::String&& value) { m_searchIdHasBeenSet = true; m_searchId = std::move(value); } + + /** + *

    The identifier of the completed search job.

    + */ + inline void SetSearchId(const char* value) { m_searchIdHasBeenSet = true; m_searchId.assign(value); } + + /** + *

    The identifier of the completed search job.

    + */ + inline GetArchiveSearchResultsRequest& WithSearchId(const Aws::String& value) { SetSearchId(value); return *this;} + + /** + *

    The identifier of the completed search job.

    + */ + inline GetArchiveSearchResultsRequest& WithSearchId(Aws::String&& value) { SetSearchId(std::move(value)); return *this;} + + /** + *

    The identifier of the completed search job.

    + */ + inline GetArchiveSearchResultsRequest& WithSearchId(const char* value) { SetSearchId(value); return *this;} + + private: + + Aws::String m_searchId; + bool m_searchIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResultsResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResultsResult.h new file mode 100644 index 00000000000..b690b656d62 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetArchiveSearchResultsResult.h @@ -0,0 +1,109 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing search results from a completed archive + * search.

    See Also:

    AWS + * API Reference

    + */ + class GetArchiveSearchResultsResult + { + public: + AWS_MAILMANAGER_API GetArchiveSearchResultsResult(); + AWS_MAILMANAGER_API GetArchiveSearchResultsResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetArchiveSearchResultsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The list of email result objects matching the search criteria.

    + */ + inline const Aws::Vector& GetRows() const{ return m_rows; } + + /** + *

    The list of email result objects matching the search criteria.

    + */ + inline void SetRows(const Aws::Vector& value) { m_rows = value; } + + /** + *

    The list of email result objects matching the search criteria.

    + */ + inline void SetRows(Aws::Vector&& value) { m_rows = std::move(value); } + + /** + *

    The list of email result objects matching the search criteria.

    + */ + inline GetArchiveSearchResultsResult& WithRows(const Aws::Vector& value) { SetRows(value); return *this;} + + /** + *

    The list of email result objects matching the search criteria.

    + */ + inline GetArchiveSearchResultsResult& WithRows(Aws::Vector&& value) { SetRows(std::move(value)); return *this;} + + /** + *

    The list of email result objects matching the search criteria.

    + */ + inline GetArchiveSearchResultsResult& AddRows(const Row& value) { m_rows.push_back(value); return *this; } + + /** + *

    The list of email result objects matching the search criteria.

    + */ + inline GetArchiveSearchResultsResult& AddRows(Row&& value) { m_rows.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetArchiveSearchResultsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetArchiveSearchResultsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetArchiveSearchResultsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_rows; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetIngressPointRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetIngressPointRequest.h new file mode 100644 index 00000000000..6de329dc93c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetIngressPointRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class GetIngressPointRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetIngressPointRequest(); + + // 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 "GetIngressPoint"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of an ingress endpoint.

    + */ + inline const Aws::String& GetIngressPointId() const{ return m_ingressPointId; } + + /** + *

    The identifier of an ingress endpoint.

    + */ + inline bool IngressPointIdHasBeenSet() const { return m_ingressPointIdHasBeenSet; } + + /** + *

    The identifier of an ingress endpoint.

    + */ + inline void SetIngressPointId(const Aws::String& value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId = value; } + + /** + *

    The identifier of an ingress endpoint.

    + */ + inline void SetIngressPointId(Aws::String&& value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId = std::move(value); } + + /** + *

    The identifier of an ingress endpoint.

    + */ + inline void SetIngressPointId(const char* value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId.assign(value); } + + /** + *

    The identifier of an ingress endpoint.

    + */ + inline GetIngressPointRequest& WithIngressPointId(const Aws::String& value) { SetIngressPointId(value); return *this;} + + /** + *

    The identifier of an ingress endpoint.

    + */ + inline GetIngressPointRequest& WithIngressPointId(Aws::String&& value) { SetIngressPointId(std::move(value)); return *this;} + + /** + *

    The identifier of an ingress endpoint.

    + */ + inline GetIngressPointRequest& WithIngressPointId(const char* value) { SetIngressPointId(value); return *this;} + + private: + + Aws::String m_ingressPointId; + bool m_ingressPointIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetIngressPointResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetIngressPointResult.h new file mode 100644 index 00000000000..80bbcc7d270 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetIngressPointResult.h @@ -0,0 +1,456 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class GetIngressPointResult + { + public: + AWS_MAILMANAGER_API GetIngressPointResult(); + AWS_MAILMANAGER_API GetIngressPointResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetIngressPointResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline const Aws::String& GetARecord() const{ return m_aRecord; } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline void SetARecord(const Aws::String& value) { m_aRecord = value; } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline void SetARecord(Aws::String&& value) { m_aRecord = std::move(value); } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline void SetARecord(const char* value) { m_aRecord.assign(value); } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline GetIngressPointResult& WithARecord(const Aws::String& value) { SetARecord(value); return *this;} + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline GetIngressPointResult& WithARecord(Aws::String&& value) { SetARecord(std::move(value)); return *this;} + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline GetIngressPointResult& WithARecord(const char* value) { SetARecord(value); return *this;} + + + /** + *

    The timestamp of when the ingress endpoint was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + + /** + *

    The timestamp of when the ingress endpoint was created.

    + */ + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + + /** + *

    The timestamp of when the ingress endpoint was created.

    + */ + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + + /** + *

    The timestamp of when the ingress endpoint was created.

    + */ + inline GetIngressPointResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the ingress endpoint was created.

    + */ + inline GetIngressPointResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the ingress endpoint resource.

    + */ + inline const Aws::String& GetIngressPointArn() const{ return m_ingressPointArn; } + + /** + *

    The Amazon Resource Name (ARN) of the ingress endpoint resource.

    + */ + inline void SetIngressPointArn(const Aws::String& value) { m_ingressPointArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the ingress endpoint resource.

    + */ + inline void SetIngressPointArn(Aws::String&& value) { m_ingressPointArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the ingress endpoint resource.

    + */ + inline void SetIngressPointArn(const char* value) { m_ingressPointArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithIngressPointArn(const Aws::String& value) { SetIngressPointArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithIngressPointArn(Aws::String&& value) { SetIngressPointArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithIngressPointArn(const char* value) { SetIngressPointArn(value); return *this;} + + + /** + *

    The authentication configuration of the ingress endpoint resource.

    + */ + inline const IngressPointAuthConfiguration& GetIngressPointAuthConfiguration() const{ return m_ingressPointAuthConfiguration; } + + /** + *

    The authentication configuration of the ingress endpoint resource.

    + */ + inline void SetIngressPointAuthConfiguration(const IngressPointAuthConfiguration& value) { m_ingressPointAuthConfiguration = value; } + + /** + *

    The authentication configuration of the ingress endpoint resource.

    + */ + inline void SetIngressPointAuthConfiguration(IngressPointAuthConfiguration&& value) { m_ingressPointAuthConfiguration = std::move(value); } + + /** + *

    The authentication configuration of the ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithIngressPointAuthConfiguration(const IngressPointAuthConfiguration& value) { SetIngressPointAuthConfiguration(value); return *this;} + + /** + *

    The authentication configuration of the ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithIngressPointAuthConfiguration(IngressPointAuthConfiguration&& value) { SetIngressPointAuthConfiguration(std::move(value)); return *this;} + + + /** + *

    The identifier of an ingress endpoint resource.

    + */ + inline const Aws::String& GetIngressPointId() const{ return m_ingressPointId; } + + /** + *

    The identifier of an ingress endpoint resource.

    + */ + inline void SetIngressPointId(const Aws::String& value) { m_ingressPointId = value; } + + /** + *

    The identifier of an ingress endpoint resource.

    + */ + inline void SetIngressPointId(Aws::String&& value) { m_ingressPointId = std::move(value); } + + /** + *

    The identifier of an ingress endpoint resource.

    + */ + inline void SetIngressPointId(const char* value) { m_ingressPointId.assign(value); } + + /** + *

    The identifier of an ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithIngressPointId(const Aws::String& value) { SetIngressPointId(value); return *this;} + + /** + *

    The identifier of an ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithIngressPointId(Aws::String&& value) { SetIngressPointId(std::move(value)); return *this;} + + /** + *

    The identifier of an ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithIngressPointId(const char* value) { SetIngressPointId(value); return *this;} + + + /** + *

    A user friendly name for the ingress endpoint.

    + */ + inline const Aws::String& GetIngressPointName() const{ return m_ingressPointName; } + + /** + *

    A user friendly name for the ingress endpoint.

    + */ + inline void SetIngressPointName(const Aws::String& value) { m_ingressPointName = value; } + + /** + *

    A user friendly name for the ingress endpoint.

    + */ + inline void SetIngressPointName(Aws::String&& value) { m_ingressPointName = std::move(value); } + + /** + *

    A user friendly name for the ingress endpoint.

    + */ + inline void SetIngressPointName(const char* value) { m_ingressPointName.assign(value); } + + /** + *

    A user friendly name for the ingress endpoint.

    + */ + inline GetIngressPointResult& WithIngressPointName(const Aws::String& value) { SetIngressPointName(value); return *this;} + + /** + *

    A user friendly name for the ingress endpoint.

    + */ + inline GetIngressPointResult& WithIngressPointName(Aws::String&& value) { SetIngressPointName(std::move(value)); return *this;} + + /** + *

    A user friendly name for the ingress endpoint.

    + */ + inline GetIngressPointResult& WithIngressPointName(const char* value) { SetIngressPointName(value); return *this;} + + + /** + *

    The timestamp of when the ingress endpoint was last updated.

    + */ + inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } + + /** + *

    The timestamp of when the ingress endpoint was last updated.

    + */ + inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestamp = value; } + + /** + *

    The timestamp of when the ingress endpoint was last updated.

    + */ + inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestamp = std::move(value); } + + /** + *

    The timestamp of when the ingress endpoint was last updated.

    + */ + inline GetIngressPointResult& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the ingress endpoint was last updated.

    + */ + inline GetIngressPointResult& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} + + + /** + *

    The identifier of a rule set resource associated with the ingress + * endpoint.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of a rule set resource associated with the ingress + * endpoint.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetId = value; } + + /** + *

    The identifier of a rule set resource associated with the ingress + * endpoint.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetId = std::move(value); } + + /** + *

    The identifier of a rule set resource associated with the ingress + * endpoint.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetId.assign(value); } + + /** + *

    The identifier of a rule set resource associated with the ingress + * endpoint.

    + */ + inline GetIngressPointResult& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of a rule set resource associated with the ingress + * endpoint.

    + */ + inline GetIngressPointResult& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of a rule set resource associated with the ingress + * endpoint.

    + */ + inline GetIngressPointResult& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline const IngressPointStatus& GetStatus() const{ return m_status; } + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline void SetStatus(const IngressPointStatus& value) { m_status = value; } + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline void SetStatus(IngressPointStatus&& value) { m_status = std::move(value); } + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithStatus(const IngressPointStatus& value) { SetStatus(value); return *this;} + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline GetIngressPointResult& WithStatus(IngressPointStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

    The identifier of the traffic policy resource associated with the ingress + * endpoint.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of the traffic policy resource associated with the ingress + * endpoint.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyId = value; } + + /** + *

    The identifier of the traffic policy resource associated with the ingress + * endpoint.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of the traffic policy resource associated with the ingress + * endpoint.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of the traffic policy resource associated with the ingress + * endpoint.

    + */ + inline GetIngressPointResult& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of the traffic policy resource associated with the ingress + * endpoint.

    + */ + inline GetIngressPointResult& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of the traffic policy resource associated with the ingress + * endpoint.

    + */ + inline GetIngressPointResult& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + + /** + *

    The type of ingress endpoint.

    + */ + inline const IngressPointType& GetType() const{ return m_type; } + + /** + *

    The type of ingress endpoint.

    + */ + inline void SetType(const IngressPointType& value) { m_type = value; } + + /** + *

    The type of ingress endpoint.

    + */ + inline void SetType(IngressPointType&& value) { m_type = std::move(value); } + + /** + *

    The type of ingress endpoint.

    + */ + inline GetIngressPointResult& WithType(const IngressPointType& value) { SetType(value); return *this;} + + /** + *

    The type of ingress endpoint.

    + */ + inline GetIngressPointResult& WithType(IngressPointType&& value) { SetType(std::move(value)); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetIngressPointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetIngressPointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetIngressPointResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_aRecord; + + Aws::Utils::DateTime m_createdTimestamp; + + Aws::String m_ingressPointArn; + + IngressPointAuthConfiguration m_ingressPointAuthConfiguration; + + Aws::String m_ingressPointId; + + Aws::String m_ingressPointName; + + Aws::Utils::DateTime m_lastUpdatedTimestamp; + + Aws::String m_ruleSetId; + + IngressPointStatus m_status; + + Aws::String m_trafficPolicyId; + + IngressPointType m_type; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRelayRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRelayRequest.h new file mode 100644 index 00000000000..59de0ed35b9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRelayRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class GetRelayRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetRelayRequest(); + + // 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 "GetRelay"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    A unique relay identifier.

    + */ + inline const Aws::String& GetRelayId() const{ return m_relayId; } + + /** + *

    A unique relay identifier.

    + */ + inline bool RelayIdHasBeenSet() const { return m_relayIdHasBeenSet; } + + /** + *

    A unique relay identifier.

    + */ + inline void SetRelayId(const Aws::String& value) { m_relayIdHasBeenSet = true; m_relayId = value; } + + /** + *

    A unique relay identifier.

    + */ + inline void SetRelayId(Aws::String&& value) { m_relayIdHasBeenSet = true; m_relayId = std::move(value); } + + /** + *

    A unique relay identifier.

    + */ + inline void SetRelayId(const char* value) { m_relayIdHasBeenSet = true; m_relayId.assign(value); } + + /** + *

    A unique relay identifier.

    + */ + inline GetRelayRequest& WithRelayId(const Aws::String& value) { SetRelayId(value); return *this;} + + /** + *

    A unique relay identifier.

    + */ + inline GetRelayRequest& WithRelayId(Aws::String&& value) { SetRelayId(std::move(value)); return *this;} + + /** + *

    A unique relay identifier.

    + */ + inline GetRelayRequest& WithRelayId(const char* value) { SetRelayId(value); return *this;} + + private: + + Aws::String m_relayId; + bool m_relayIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRelayResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRelayResult.h new file mode 100644 index 00000000000..0ea2dcc08e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRelayResult.h @@ -0,0 +1,324 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class GetRelayResult + { + public: + AWS_MAILMANAGER_API GetRelayResult(); + AWS_MAILMANAGER_API GetRelayResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetRelayResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The authentication attribute—contains the secret ARN where the customer relay + * server credentials are stored.

    + */ + inline const RelayAuthentication& GetAuthentication() const{ return m_authentication; } + + /** + *

    The authentication attribute—contains the secret ARN where the customer relay + * server credentials are stored.

    + */ + inline void SetAuthentication(const RelayAuthentication& value) { m_authentication = value; } + + /** + *

    The authentication attribute—contains the secret ARN where the customer relay + * server credentials are stored.

    + */ + inline void SetAuthentication(RelayAuthentication&& value) { m_authentication = std::move(value); } + + /** + *

    The authentication attribute—contains the secret ARN where the customer relay + * server credentials are stored.

    + */ + inline GetRelayResult& WithAuthentication(const RelayAuthentication& value) { SetAuthentication(value); return *this;} + + /** + *

    The authentication attribute—contains the secret ARN where the customer relay + * server credentials are stored.

    + */ + inline GetRelayResult& WithAuthentication(RelayAuthentication&& value) { SetAuthentication(std::move(value)); return *this;} + + + /** + *

    The timestamp of when the relay was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + + /** + *

    The timestamp of when the relay was created.

    + */ + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + + /** + *

    The timestamp of when the relay was created.

    + */ + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + + /** + *

    The timestamp of when the relay was created.

    + */ + inline GetRelayResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the relay was created.

    + */ + inline GetRelayResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + + + /** + *

    The timestamp of when relay was last updated.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; } + + /** + *

    The timestamp of when relay was last updated.

    + */ + inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestamp = value; } + + /** + *

    The timestamp of when relay was last updated.

    + */ + inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestamp = std::move(value); } + + /** + *

    The timestamp of when relay was last updated.

    + */ + inline GetRelayResult& WithLastModifiedTimestamp(const Aws::Utils::DateTime& value) { SetLastModifiedTimestamp(value); return *this;} + + /** + *

    The timestamp of when relay was last updated.

    + */ + inline GetRelayResult& WithLastModifiedTimestamp(Aws::Utils::DateTime&& value) { SetLastModifiedTimestamp(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the relay.

    + */ + inline const Aws::String& GetRelayArn() const{ return m_relayArn; } + + /** + *

    The Amazon Resource Name (ARN) of the relay.

    + */ + inline void SetRelayArn(const Aws::String& value) { m_relayArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the relay.

    + */ + inline void SetRelayArn(Aws::String&& value) { m_relayArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the relay.

    + */ + inline void SetRelayArn(const char* value) { m_relayArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the relay.

    + */ + inline GetRelayResult& WithRelayArn(const Aws::String& value) { SetRelayArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the relay.

    + */ + inline GetRelayResult& WithRelayArn(Aws::String&& value) { SetRelayArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the relay.

    + */ + inline GetRelayResult& WithRelayArn(const char* value) { SetRelayArn(value); return *this;} + + + /** + *

    The unique relay identifier.

    + */ + inline const Aws::String& GetRelayId() const{ return m_relayId; } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(const Aws::String& value) { m_relayId = value; } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(Aws::String&& value) { m_relayId = std::move(value); } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(const char* value) { m_relayId.assign(value); } + + /** + *

    The unique relay identifier.

    + */ + inline GetRelayResult& WithRelayId(const Aws::String& value) { SetRelayId(value); return *this;} + + /** + *

    The unique relay identifier.

    + */ + inline GetRelayResult& WithRelayId(Aws::String&& value) { SetRelayId(std::move(value)); return *this;} + + /** + *

    The unique relay identifier.

    + */ + inline GetRelayResult& WithRelayId(const char* value) { SetRelayId(value); return *this;} + + + /** + *

    The unique name of the relay.

    + */ + inline const Aws::String& GetRelayName() const{ return m_relayName; } + + /** + *

    The unique name of the relay.

    + */ + inline void SetRelayName(const Aws::String& value) { m_relayName = value; } + + /** + *

    The unique name of the relay.

    + */ + inline void SetRelayName(Aws::String&& value) { m_relayName = std::move(value); } + + /** + *

    The unique name of the relay.

    + */ + inline void SetRelayName(const char* value) { m_relayName.assign(value); } + + /** + *

    The unique name of the relay.

    + */ + inline GetRelayResult& WithRelayName(const Aws::String& value) { SetRelayName(value); return *this;} + + /** + *

    The unique name of the relay.

    + */ + inline GetRelayResult& WithRelayName(Aws::String&& value) { SetRelayName(std::move(value)); return *this;} + + /** + *

    The unique name of the relay.

    + */ + inline GetRelayResult& WithRelayName(const char* value) { SetRelayName(value); return *this;} + + + /** + *

    The destination relay server address.

    + */ + inline const Aws::String& GetServerName() const{ return m_serverName; } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(const Aws::String& value) { m_serverName = value; } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(Aws::String&& value) { m_serverName = std::move(value); } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(const char* value) { m_serverName.assign(value); } + + /** + *

    The destination relay server address.

    + */ + inline GetRelayResult& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} + + /** + *

    The destination relay server address.

    + */ + inline GetRelayResult& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} + + /** + *

    The destination relay server address.

    + */ + inline GetRelayResult& WithServerName(const char* value) { SetServerName(value); return *this;} + + + /** + *

    The destination relay server port.

    + */ + inline int GetServerPort() const{ return m_serverPort; } + + /** + *

    The destination relay server port.

    + */ + inline void SetServerPort(int value) { m_serverPort = value; } + + /** + *

    The destination relay server port.

    + */ + inline GetRelayResult& WithServerPort(int value) { SetServerPort(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetRelayResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetRelayResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetRelayResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + RelayAuthentication m_authentication; + + Aws::Utils::DateTime m_createdTimestamp; + + Aws::Utils::DateTime m_lastModifiedTimestamp; + + Aws::String m_relayArn; + + Aws::String m_relayId; + + Aws::String m_relayName; + + Aws::String m_serverName; + + int m_serverPort; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRuleSetRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRuleSetRequest.h new file mode 100644 index 00000000000..1de14b108d7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRuleSetRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class GetRuleSetRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetRuleSetRequest(); + + // 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 "GetRuleSet"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of an existing rule set to be retrieved.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of an existing rule set to be retrieved.

    + */ + inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; } + + /** + *

    The identifier of an existing rule set to be retrieved.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = value; } + + /** + *

    The identifier of an existing rule set to be retrieved.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::move(value); } + + /** + *

    The identifier of an existing rule set to be retrieved.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId.assign(value); } + + /** + *

    The identifier of an existing rule set to be retrieved.

    + */ + inline GetRuleSetRequest& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of an existing rule set to be retrieved.

    + */ + inline GetRuleSetRequest& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of an existing rule set to be retrieved.

    + */ + inline GetRuleSetRequest& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + private: + + Aws::String m_ruleSetId; + bool m_ruleSetIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRuleSetResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRuleSetResult.h new file mode 100644 index 00000000000..ab026b2edba --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetRuleSetResult.h @@ -0,0 +1,274 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class GetRuleSetResult + { + public: + AWS_MAILMANAGER_API GetRuleSetResult(); + AWS_MAILMANAGER_API GetRuleSetResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetRuleSetResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The date of when then rule set was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } + + /** + *

    The date of when then rule set was created.

    + */ + inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; } + + /** + *

    The date of when then rule set was created.

    + */ + inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); } + + /** + *

    The date of when then rule set was created.

    + */ + inline GetRuleSetResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} + + /** + *

    The date of when then rule set was created.

    + */ + inline GetRuleSetResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} + + + /** + *

    The date of when the rule set was last modified.

    + */ + inline const Aws::Utils::DateTime& GetLastModificationDate() const{ return m_lastModificationDate; } + + /** + *

    The date of when the rule set was last modified.

    + */ + inline void SetLastModificationDate(const Aws::Utils::DateTime& value) { m_lastModificationDate = value; } + + /** + *

    The date of when the rule set was last modified.

    + */ + inline void SetLastModificationDate(Aws::Utils::DateTime&& value) { m_lastModificationDate = std::move(value); } + + /** + *

    The date of when the rule set was last modified.

    + */ + inline GetRuleSetResult& WithLastModificationDate(const Aws::Utils::DateTime& value) { SetLastModificationDate(value); return *this;} + + /** + *

    The date of when the rule set was last modified.

    + */ + inline GetRuleSetResult& WithLastModificationDate(Aws::Utils::DateTime&& value) { SetLastModificationDate(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the rule set resource.

    + */ + inline const Aws::String& GetRuleSetArn() const{ return m_ruleSetArn; } + + /** + *

    The Amazon Resource Name (ARN) of the rule set resource.

    + */ + inline void SetRuleSetArn(const Aws::String& value) { m_ruleSetArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the rule set resource.

    + */ + inline void SetRuleSetArn(Aws::String&& value) { m_ruleSetArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the rule set resource.

    + */ + inline void SetRuleSetArn(const char* value) { m_ruleSetArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetArn(const Aws::String& value) { SetRuleSetArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetArn(Aws::String&& value) { SetRuleSetArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetArn(const char* value) { SetRuleSetArn(value); return *this;} + + + /** + *

    The identifier of the rule set resource.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of the rule set resource.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetId = value; } + + /** + *

    The identifier of the rule set resource.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetId = std::move(value); } + + /** + *

    The identifier of the rule set resource.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetId.assign(value); } + + /** + *

    The identifier of the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline void SetRuleSetName(const Aws::String& value) { m_ruleSetName = value; } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline void SetRuleSetName(Aws::String&& value) { m_ruleSetName = std::move(value); } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline void SetRuleSetName(const char* value) { m_ruleSetName.assign(value); } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;} + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;} + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline GetRuleSetResult& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;} + + + /** + *

    The rules contained in the rule set.

    + */ + inline const Aws::Vector& GetRules() const{ return m_rules; } + + /** + *

    The rules contained in the rule set.

    + */ + inline void SetRules(const Aws::Vector& value) { m_rules = value; } + + /** + *

    The rules contained in the rule set.

    + */ + inline void SetRules(Aws::Vector&& value) { m_rules = std::move(value); } + + /** + *

    The rules contained in the rule set.

    + */ + inline GetRuleSetResult& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} + + /** + *

    The rules contained in the rule set.

    + */ + inline GetRuleSetResult& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} + + /** + *

    The rules contained in the rule set.

    + */ + inline GetRuleSetResult& AddRules(const Rule& value) { m_rules.push_back(value); return *this; } + + /** + *

    The rules contained in the rule set.

    + */ + inline GetRuleSetResult& AddRules(Rule&& value) { m_rules.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetRuleSetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetRuleSetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetRuleSetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Utils::DateTime m_createdDate; + + Aws::Utils::DateTime m_lastModificationDate; + + Aws::String m_ruleSetArn; + + Aws::String m_ruleSetId; + + Aws::String m_ruleSetName; + + Aws::Vector m_rules; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetTrafficPolicyRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetTrafficPolicyRequest.h new file mode 100644 index 00000000000..46f7f3f5bfa --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetTrafficPolicyRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class GetTrafficPolicyRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API GetTrafficPolicyRequest(); + + // 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 "GetTrafficPolicy"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline GetTrafficPolicyRequest& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline GetTrafficPolicyRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline GetTrafficPolicyRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + private: + + Aws::String m_trafficPolicyId; + bool m_trafficPolicyIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetTrafficPolicyResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetTrafficPolicyResult.h new file mode 100644 index 00000000000..a2c2aa017fe --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/GetTrafficPolicyResult.h @@ -0,0 +1,324 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class GetTrafficPolicyResult + { + public: + AWS_MAILMANAGER_API GetTrafficPolicyResult(); + AWS_MAILMANAGER_API GetTrafficPolicyResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API GetTrafficPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The timestamp of when the traffic policy was created.

    + */ + inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } + + /** + *

    The timestamp of when the traffic policy was created.

    + */ + inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } + + /** + *

    The timestamp of when the traffic policy was created.

    + */ + inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } + + /** + *

    The timestamp of when the traffic policy was created.

    + */ + inline GetTrafficPolicyResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the traffic policy was created.

    + */ + inline GetTrafficPolicyResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} + + + /** + *

    The default action of the traffic policy.

    + */ + inline const AcceptAction& GetDefaultAction() const{ return m_defaultAction; } + + /** + *

    The default action of the traffic policy.

    + */ + inline void SetDefaultAction(const AcceptAction& value) { m_defaultAction = value; } + + /** + *

    The default action of the traffic policy.

    + */ + inline void SetDefaultAction(AcceptAction&& value) { m_defaultAction = std::move(value); } + + /** + *

    The default action of the traffic policy.

    + */ + inline GetTrafficPolicyResult& WithDefaultAction(const AcceptAction& value) { SetDefaultAction(value); return *this;} + + /** + *

    The default action of the traffic policy.

    + */ + inline GetTrafficPolicyResult& WithDefaultAction(AcceptAction&& value) { SetDefaultAction(std::move(value)); return *this;} + + + /** + *

    The timestamp of when the traffic policy was last updated.

    + */ + inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } + + /** + *

    The timestamp of when the traffic policy was last updated.

    + */ + inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestamp = value; } + + /** + *

    The timestamp of when the traffic policy was last updated.

    + */ + inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestamp = std::move(value); } + + /** + *

    The timestamp of when the traffic policy was last updated.

    + */ + inline GetTrafficPolicyResult& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the traffic policy was last updated.

    + */ + inline GetTrafficPolicyResult& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} + + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline int GetMaxMessageSizeBytes() const{ return m_maxMessageSizeBytes; } + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline void SetMaxMessageSizeBytes(int value) { m_maxMessageSizeBytes = value; } + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline GetTrafficPolicyResult& WithMaxMessageSizeBytes(int value) { SetMaxMessageSizeBytes(value); return *this;} + + + /** + *

    The list of conditions which are in the traffic policy resource.

    + */ + inline const Aws::Vector& GetPolicyStatements() const{ return m_policyStatements; } + + /** + *

    The list of conditions which are in the traffic policy resource.

    + */ + inline void SetPolicyStatements(const Aws::Vector& value) { m_policyStatements = value; } + + /** + *

    The list of conditions which are in the traffic policy resource.

    + */ + inline void SetPolicyStatements(Aws::Vector&& value) { m_policyStatements = std::move(value); } + + /** + *

    The list of conditions which are in the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithPolicyStatements(const Aws::Vector& value) { SetPolicyStatements(value); return *this;} + + /** + *

    The list of conditions which are in the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithPolicyStatements(Aws::Vector&& value) { SetPolicyStatements(std::move(value)); return *this;} + + /** + *

    The list of conditions which are in the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& AddPolicyStatements(const PolicyStatement& value) { m_policyStatements.push_back(value); return *this; } + + /** + *

    The list of conditions which are in the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& AddPolicyStatements(PolicyStatement&& value) { m_policyStatements.push_back(std::move(value)); return *this; } + + + /** + *

    The Amazon Resource Name (ARN) of the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyArn() const{ return m_trafficPolicyArn; } + + /** + *

    The Amazon Resource Name (ARN) of the traffic policy resource.

    + */ + inline void SetTrafficPolicyArn(const Aws::String& value) { m_trafficPolicyArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the traffic policy resource.

    + */ + inline void SetTrafficPolicyArn(Aws::String&& value) { m_trafficPolicyArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the traffic policy resource.

    + */ + inline void SetTrafficPolicyArn(const char* value) { m_trafficPolicyArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyArn(const Aws::String& value) { SetTrafficPolicyArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyArn(Aws::String&& value) { SetTrafficPolicyArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyArn(const char* value) { SetTrafficPolicyArn(value); return *this;} + + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyId = value; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyName() const{ return m_trafficPolicyName; } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(const Aws::String& value) { m_trafficPolicyName = value; } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(Aws::String&& value) { m_trafficPolicyName = std::move(value); } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(const char* value) { m_trafficPolicyName.assign(value); } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyName(const Aws::String& value) { SetTrafficPolicyName(value); return *this;} + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyName(Aws::String&& value) { SetTrafficPolicyName(std::move(value)); return *this;} + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline GetTrafficPolicyResult& WithTrafficPolicyName(const char* value) { SetTrafficPolicyName(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline GetTrafficPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline GetTrafficPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline GetTrafficPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Utils::DateTime m_createdTimestamp; + + AcceptAction m_defaultAction; + + Aws::Utils::DateTime m_lastUpdatedTimestamp; + + int m_maxMessageSizeBytes; + + Aws::Vector m_policyStatements; + + Aws::String m_trafficPolicyArn; + + Aws::String m_trafficPolicyId; + + Aws::String m_trafficPolicyName; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressAnalysis.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressAnalysis.h new file mode 100644 index 00000000000..8d651839254 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressAnalysis.h @@ -0,0 +1,134 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The Add On ARN and its returned value that is evaluated in a policy + * statement's conditional expression to either deny or block the incoming + * email.

    See Also:

    AWS + * API Reference

    + */ + class IngressAnalysis + { + public: + AWS_MAILMANAGER_API IngressAnalysis(); + AWS_MAILMANAGER_API IngressAnalysis(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressAnalysis& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline const Aws::String& GetAnalyzer() const{ return m_analyzer; } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline bool AnalyzerHasBeenSet() const { return m_analyzerHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline void SetAnalyzer(const Aws::String& value) { m_analyzerHasBeenSet = true; m_analyzer = value; } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline void SetAnalyzer(Aws::String&& value) { m_analyzerHasBeenSet = true; m_analyzer = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline void SetAnalyzer(const char* value) { m_analyzerHasBeenSet = true; m_analyzer.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline IngressAnalysis& WithAnalyzer(const Aws::String& value) { SetAnalyzer(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline IngressAnalysis& WithAnalyzer(Aws::String&& value) { SetAnalyzer(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of an Add On.

    + */ + inline IngressAnalysis& WithAnalyzer(const char* value) { SetAnalyzer(value); return *this;} + + + /** + *

    The returned value from an Add On.

    + */ + inline const Aws::String& GetResultField() const{ return m_resultField; } + + /** + *

    The returned value from an Add On.

    + */ + inline bool ResultFieldHasBeenSet() const { return m_resultFieldHasBeenSet; } + + /** + *

    The returned value from an Add On.

    + */ + inline void SetResultField(const Aws::String& value) { m_resultFieldHasBeenSet = true; m_resultField = value; } + + /** + *

    The returned value from an Add On.

    + */ + inline void SetResultField(Aws::String&& value) { m_resultFieldHasBeenSet = true; m_resultField = std::move(value); } + + /** + *

    The returned value from an Add On.

    + */ + inline void SetResultField(const char* value) { m_resultFieldHasBeenSet = true; m_resultField.assign(value); } + + /** + *

    The returned value from an Add On.

    + */ + inline IngressAnalysis& WithResultField(const Aws::String& value) { SetResultField(value); return *this;} + + /** + *

    The returned value from an Add On.

    + */ + inline IngressAnalysis& WithResultField(Aws::String&& value) { SetResultField(std::move(value)); return *this;} + + /** + *

    The returned value from an Add On.

    + */ + inline IngressAnalysis& WithResultField(const char* value) { SetResultField(value); return *this;} + + private: + + Aws::String m_analyzer; + bool m_analyzerHasBeenSet = false; + + Aws::String m_resultField; + bool m_resultFieldHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanExpression.h new file mode 100644 index 00000000000..c35c885ea0a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanExpression.h @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The structure for a boolean condition matching on the incoming + * mail.

    See Also:

    AWS + * API Reference

    + */ + class IngressBooleanExpression + { + public: + AWS_MAILMANAGER_API IngressBooleanExpression(); + AWS_MAILMANAGER_API IngressBooleanExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressBooleanExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline const IngressBooleanToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline void SetEvaluate(const IngressBooleanToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline void SetEvaluate(IngressBooleanToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline IngressBooleanExpression& WithEvaluate(const IngressBooleanToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline IngressBooleanExpression& WithEvaluate(IngressBooleanToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline const IngressBooleanOperator& GetOperator() const{ return m_operator; } + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline void SetOperator(const IngressBooleanOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline void SetOperator(IngressBooleanOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline IngressBooleanExpression& WithOperator(const IngressBooleanOperator& value) { SetOperator(value); return *this;} + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline IngressBooleanExpression& WithOperator(IngressBooleanOperator&& value) { SetOperator(std::move(value)); return *this;} + + private: + + IngressBooleanToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + IngressBooleanOperator m_operator; + bool m_operatorHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanOperator.h new file mode 100644 index 00000000000..9aa3ddd889a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanOperator.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressBooleanOperator + { + NOT_SET, + IS_TRUE, + IS_FALSE + }; + +namespace IngressBooleanOperatorMapper +{ +AWS_MAILMANAGER_API IngressBooleanOperator GetIngressBooleanOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressBooleanOperator(IngressBooleanOperator value); +} // namespace IngressBooleanOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanToEvaluate.h new file mode 100644 index 00000000000..55e41f55147 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressBooleanToEvaluate.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The union type representing the allowed types of operands for a boolean + * condition.

    See Also:

    AWS + * API Reference

    + */ + class IngressBooleanToEvaluate + { + public: + AWS_MAILMANAGER_API IngressBooleanToEvaluate(); + AWS_MAILMANAGER_API IngressBooleanToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressBooleanToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The structure type for a boolean condition stating the Add On ARN and its + * returned value.

    + */ + inline const IngressAnalysis& GetAnalysis() const{ return m_analysis; } + + /** + *

    The structure type for a boolean condition stating the Add On ARN and its + * returned value.

    + */ + inline bool AnalysisHasBeenSet() const { return m_analysisHasBeenSet; } + + /** + *

    The structure type for a boolean condition stating the Add On ARN and its + * returned value.

    + */ + inline void SetAnalysis(const IngressAnalysis& value) { m_analysisHasBeenSet = true; m_analysis = value; } + + /** + *

    The structure type for a boolean condition stating the Add On ARN and its + * returned value.

    + */ + inline void SetAnalysis(IngressAnalysis&& value) { m_analysisHasBeenSet = true; m_analysis = std::move(value); } + + /** + *

    The structure type for a boolean condition stating the Add On ARN and its + * returned value.

    + */ + inline IngressBooleanToEvaluate& WithAnalysis(const IngressAnalysis& value) { SetAnalysis(value); return *this;} + + /** + *

    The structure type for a boolean condition stating the Add On ARN and its + * returned value.

    + */ + inline IngressBooleanToEvaluate& WithAnalysis(IngressAnalysis&& value) { SetAnalysis(std::move(value)); return *this;} + + private: + + IngressAnalysis m_analysis; + bool m_analysisHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpOperator.h new file mode 100644 index 00000000000..564e4e385a7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpOperator.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressIpOperator + { + NOT_SET, + CIDR_MATCHES, + NOT_CIDR_MATCHES + }; + +namespace IngressIpOperatorMapper +{ +AWS_MAILMANAGER_API IngressIpOperator GetIngressIpOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressIpOperator(IngressIpOperator value); +} // namespace IngressIpOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpToEvaluate.h new file mode 100644 index 00000000000..5665767936f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpToEvaluate.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The structure for an IP based condition matching on the incoming + * mail.

    See Also:

    AWS + * API Reference

    + */ + class IngressIpToEvaluate + { + public: + AWS_MAILMANAGER_API IngressIpToEvaluate(); + AWS_MAILMANAGER_API IngressIpToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressIpToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    An enum type representing the allowed attribute types for an IP + * condition.

    + */ + inline const IngressIpv4Attribute& GetAttribute() const{ return m_attribute; } + + /** + *

    An enum type representing the allowed attribute types for an IP + * condition.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    An enum type representing the allowed attribute types for an IP + * condition.

    + */ + inline void SetAttribute(const IngressIpv4Attribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    An enum type representing the allowed attribute types for an IP + * condition.

    + */ + inline void SetAttribute(IngressIpv4Attribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    An enum type representing the allowed attribute types for an IP + * condition.

    + */ + inline IngressIpToEvaluate& WithAttribute(const IngressIpv4Attribute& value) { SetAttribute(value); return *this;} + + /** + *

    An enum type representing the allowed attribute types for an IP + * condition.

    + */ + inline IngressIpToEvaluate& WithAttribute(IngressIpv4Attribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + IngressIpv4Attribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpv4Attribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpv4Attribute.h new file mode 100644 index 00000000000..93af73d0a50 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpv4Attribute.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressIpv4Attribute + { + NOT_SET, + SENDER_IP + }; + +namespace IngressIpv4AttributeMapper +{ +AWS_MAILMANAGER_API IngressIpv4Attribute GetIngressIpv4AttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressIpv4Attribute(IngressIpv4Attribute value); +} // namespace IngressIpv4AttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpv4Expression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpv4Expression.h new file mode 100644 index 00000000000..99d95e1b680 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressIpv4Expression.h @@ -0,0 +1,165 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The union type representing the allowed types for the left hand side of an IP + * condition.

    See Also:

    AWS + * API Reference

    + */ + class IngressIpv4Expression + { + public: + AWS_MAILMANAGER_API IngressIpv4Expression(); + AWS_MAILMANAGER_API IngressIpv4Expression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressIpv4Expression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The left hand side argument of an IP condition expression.

    + */ + inline const IngressIpToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The left hand side argument of an IP condition expression.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The left hand side argument of an IP condition expression.

    + */ + inline void SetEvaluate(const IngressIpToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The left hand side argument of an IP condition expression.

    + */ + inline void SetEvaluate(IngressIpToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The left hand side argument of an IP condition expression.

    + */ + inline IngressIpv4Expression& WithEvaluate(const IngressIpToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The left hand side argument of an IP condition expression.

    + */ + inline IngressIpv4Expression& WithEvaluate(IngressIpToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The matching operator for an IP condition expression.

    + */ + inline const IngressIpOperator& GetOperator() const{ return m_operator; } + + /** + *

    The matching operator for an IP condition expression.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The matching operator for an IP condition expression.

    + */ + inline void SetOperator(const IngressIpOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The matching operator for an IP condition expression.

    + */ + inline void SetOperator(IngressIpOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The matching operator for an IP condition expression.

    + */ + inline IngressIpv4Expression& WithOperator(const IngressIpOperator& value) { SetOperator(value); return *this;} + + /** + *

    The matching operator for an IP condition expression.

    + */ + inline IngressIpv4Expression& WithOperator(IngressIpOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline IngressIpv4Expression& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline IngressIpv4Expression& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline IngressIpv4Expression& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline IngressIpv4Expression& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + + /** + *

    The right hand side argument of an IP condition expression.

    + */ + inline IngressIpv4Expression& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + private: + + IngressIpToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + IngressIpOperator m_operator; + bool m_operatorHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPoint.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPoint.h new file mode 100644 index 00000000000..ee8d6ccfc8f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPoint.h @@ -0,0 +1,254 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The structure of an ingress endpoint resource.

    See Also:

    AWS + * API Reference

    + */ + class IngressPoint + { + public: + AWS_MAILMANAGER_API IngressPoint(); + AWS_MAILMANAGER_API IngressPoint(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressPoint& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline const Aws::String& GetARecord() const{ return m_aRecord; } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline bool ARecordHasBeenSet() const { return m_aRecordHasBeenSet; } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline void SetARecord(const Aws::String& value) { m_aRecordHasBeenSet = true; m_aRecord = value; } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline void SetARecord(Aws::String&& value) { m_aRecordHasBeenSet = true; m_aRecord = std::move(value); } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline void SetARecord(const char* value) { m_aRecordHasBeenSet = true; m_aRecord.assign(value); } + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline IngressPoint& WithARecord(const Aws::String& value) { SetARecord(value); return *this;} + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline IngressPoint& WithARecord(Aws::String&& value) { SetARecord(std::move(value)); return *this;} + + /** + *

    The DNS A Record that identifies your ingress endpoint. Configure your DNS + * Mail Exchange (MX) record with this value to route emails to Mail Manager.

    + */ + inline IngressPoint& WithARecord(const char* value) { SetARecord(value); return *this;} + + + /** + *

    The identifier of the ingress endpoint resource.

    + */ + inline const Aws::String& GetIngressPointId() const{ return m_ingressPointId; } + + /** + *

    The identifier of the ingress endpoint resource.

    + */ + inline bool IngressPointIdHasBeenSet() const { return m_ingressPointIdHasBeenSet; } + + /** + *

    The identifier of the ingress endpoint resource.

    + */ + inline void SetIngressPointId(const Aws::String& value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId = value; } + + /** + *

    The identifier of the ingress endpoint resource.

    + */ + inline void SetIngressPointId(Aws::String&& value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId = std::move(value); } + + /** + *

    The identifier of the ingress endpoint resource.

    + */ + inline void SetIngressPointId(const char* value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId.assign(value); } + + /** + *

    The identifier of the ingress endpoint resource.

    + */ + inline IngressPoint& WithIngressPointId(const Aws::String& value) { SetIngressPointId(value); return *this;} + + /** + *

    The identifier of the ingress endpoint resource.

    + */ + inline IngressPoint& WithIngressPointId(Aws::String&& value) { SetIngressPointId(std::move(value)); return *this;} + + /** + *

    The identifier of the ingress endpoint resource.

    + */ + inline IngressPoint& WithIngressPointId(const char* value) { SetIngressPointId(value); return *this;} + + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline const Aws::String& GetIngressPointName() const{ return m_ingressPointName; } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline bool IngressPointNameHasBeenSet() const { return m_ingressPointNameHasBeenSet; } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline void SetIngressPointName(const Aws::String& value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName = value; } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline void SetIngressPointName(Aws::String&& value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName = std::move(value); } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline void SetIngressPointName(const char* value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName.assign(value); } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline IngressPoint& WithIngressPointName(const Aws::String& value) { SetIngressPointName(value); return *this;} + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline IngressPoint& WithIngressPointName(Aws::String&& value) { SetIngressPointName(std::move(value)); return *this;} + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline IngressPoint& WithIngressPointName(const char* value) { SetIngressPointName(value); return *this;} + + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline const IngressPointStatus& GetStatus() const{ return m_status; } + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline void SetStatus(const IngressPointStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline void SetStatus(IngressPointStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline IngressPoint& WithStatus(const IngressPointStatus& value) { SetStatus(value); return *this;} + + /** + *

    The status of the ingress endpoint resource.

    + */ + inline IngressPoint& WithStatus(IngressPointStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *

    The type of ingress endpoint resource.

    + */ + inline const IngressPointType& GetType() const{ return m_type; } + + /** + *

    The type of ingress endpoint resource.

    + */ + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + + /** + *

    The type of ingress endpoint resource.

    + */ + inline void SetType(const IngressPointType& value) { m_typeHasBeenSet = true; m_type = value; } + + /** + *

    The type of ingress endpoint resource.

    + */ + inline void SetType(IngressPointType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + + /** + *

    The type of ingress endpoint resource.

    + */ + inline IngressPoint& WithType(const IngressPointType& value) { SetType(value); return *this;} + + /** + *

    The type of ingress endpoint resource.

    + */ + inline IngressPoint& WithType(IngressPointType&& value) { SetType(std::move(value)); return *this;} + + private: + + Aws::String m_aRecord; + bool m_aRecordHasBeenSet = false; + + Aws::String m_ingressPointId; + bool m_ingressPointIdHasBeenSet = false; + + Aws::String m_ingressPointName; + bool m_ingressPointNameHasBeenSet = false; + + IngressPointStatus m_status; + bool m_statusHasBeenSet = false; + + IngressPointType m_type; + bool m_typeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointAuthConfiguration.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointAuthConfiguration.h new file mode 100644 index 00000000000..8f9a524453b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointAuthConfiguration.h @@ -0,0 +1,138 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The authentication configuration for the ingress endpoint + * resource.

    See Also:

    AWS + * API Reference

    + */ + class IngressPointAuthConfiguration + { + public: + AWS_MAILMANAGER_API IngressPointAuthConfiguration(); + AWS_MAILMANAGER_API IngressPointAuthConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressPointAuthConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The ingress endpoint password configuration for the ingress endpoint + * resource.

    + */ + inline const IngressPointPasswordConfiguration& GetIngressPointPasswordConfiguration() const{ return m_ingressPointPasswordConfiguration; } + + /** + *

    The ingress endpoint password configuration for the ingress endpoint + * resource.

    + */ + inline bool IngressPointPasswordConfigurationHasBeenSet() const { return m_ingressPointPasswordConfigurationHasBeenSet; } + + /** + *

    The ingress endpoint password configuration for the ingress endpoint + * resource.

    + */ + inline void SetIngressPointPasswordConfiguration(const IngressPointPasswordConfiguration& value) { m_ingressPointPasswordConfigurationHasBeenSet = true; m_ingressPointPasswordConfiguration = value; } + + /** + *

    The ingress endpoint password configuration for the ingress endpoint + * resource.

    + */ + inline void SetIngressPointPasswordConfiguration(IngressPointPasswordConfiguration&& value) { m_ingressPointPasswordConfigurationHasBeenSet = true; m_ingressPointPasswordConfiguration = std::move(value); } + + /** + *

    The ingress endpoint password configuration for the ingress endpoint + * resource.

    + */ + inline IngressPointAuthConfiguration& WithIngressPointPasswordConfiguration(const IngressPointPasswordConfiguration& value) { SetIngressPointPasswordConfiguration(value); return *this;} + + /** + *

    The ingress endpoint password configuration for the ingress endpoint + * resource.

    + */ + inline IngressPointAuthConfiguration& WithIngressPointPasswordConfiguration(IngressPointPasswordConfiguration&& value) { SetIngressPointPasswordConfiguration(std::move(value)); return *this;} + + + /** + *

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress + * endpoint resource.

    + */ + inline const Aws::String& GetSecretArn() const{ return m_secretArn; } + + /** + *

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress + * endpoint resource.

    + */ + inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; } + + /** + *

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress + * endpoint resource.

    + */ + inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; } + + /** + *

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress + * endpoint resource.

    + */ + inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); } + + /** + *

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress + * endpoint resource.

    + */ + inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); } + + /** + *

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress + * endpoint resource.

    + */ + inline IngressPointAuthConfiguration& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} + + /** + *

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress + * endpoint resource.

    + */ + inline IngressPointAuthConfiguration& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} + + /** + *

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress + * endpoint resource.

    + */ + inline IngressPointAuthConfiguration& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} + + private: + + IngressPointPasswordConfiguration m_ingressPointPasswordConfiguration; + bool m_ingressPointPasswordConfigurationHasBeenSet = false; + + Aws::String m_secretArn; + bool m_secretArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointConfiguration.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointConfiguration.h new file mode 100644 index 00000000000..ed7453a6fcc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointConfiguration.h @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The configuration of the ingress endpoint resource.

    See Also:

    + * AWS + * API Reference

    + */ + class IngressPointConfiguration + { + public: + AWS_MAILMANAGER_API IngressPointConfiguration(); + AWS_MAILMANAGER_API IngressPointConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressPointConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    + */ + inline const Aws::String& GetSecretArn() const{ return m_secretArn; } + + /** + *

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    + */ + inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; } + + /** + *

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    + */ + inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; } + + /** + *

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    + */ + inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); } + + /** + *

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    + */ + inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); } + + /** + *

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    + */ + inline IngressPointConfiguration& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} + + /** + *

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    + */ + inline IngressPointConfiguration& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} + + /** + *

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    + */ + inline IngressPointConfiguration& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} + + + /** + *

    The password of the ingress endpoint resource.

    + */ + inline const Aws::String& GetSmtpPassword() const{ return m_smtpPassword; } + + /** + *

    The password of the ingress endpoint resource.

    + */ + inline bool SmtpPasswordHasBeenSet() const { return m_smtpPasswordHasBeenSet; } + + /** + *

    The password of the ingress endpoint resource.

    + */ + inline void SetSmtpPassword(const Aws::String& value) { m_smtpPasswordHasBeenSet = true; m_smtpPassword = value; } + + /** + *

    The password of the ingress endpoint resource.

    + */ + inline void SetSmtpPassword(Aws::String&& value) { m_smtpPasswordHasBeenSet = true; m_smtpPassword = std::move(value); } + + /** + *

    The password of the ingress endpoint resource.

    + */ + inline void SetSmtpPassword(const char* value) { m_smtpPasswordHasBeenSet = true; m_smtpPassword.assign(value); } + + /** + *

    The password of the ingress endpoint resource.

    + */ + inline IngressPointConfiguration& WithSmtpPassword(const Aws::String& value) { SetSmtpPassword(value); return *this;} + + /** + *

    The password of the ingress endpoint resource.

    + */ + inline IngressPointConfiguration& WithSmtpPassword(Aws::String&& value) { SetSmtpPassword(std::move(value)); return *this;} + + /** + *

    The password of the ingress endpoint resource.

    + */ + inline IngressPointConfiguration& WithSmtpPassword(const char* value) { SetSmtpPassword(value); return *this;} + + private: + + Aws::String m_secretArn; + bool m_secretArnHasBeenSet = false; + + Aws::String m_smtpPassword; + bool m_smtpPasswordHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointPasswordConfiguration.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointPasswordConfiguration.h new file mode 100644 index 00000000000..e124575da6b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointPasswordConfiguration.h @@ -0,0 +1,168 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The password configuration of the ingress endpoint resource.

    See + * Also:

    AWS + * API Reference

    + */ + class IngressPointPasswordConfiguration + { + public: + AWS_MAILMANAGER_API IngressPointPasswordConfiguration(); + AWS_MAILMANAGER_API IngressPointPasswordConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressPointPasswordConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The previous password expiry timestamp of the ingress endpoint resource.

    + */ + inline const Aws::Utils::DateTime& GetPreviousSmtpPasswordExpiryTimestamp() const{ return m_previousSmtpPasswordExpiryTimestamp; } + + /** + *

    The previous password expiry timestamp of the ingress endpoint resource.

    + */ + inline bool PreviousSmtpPasswordExpiryTimestampHasBeenSet() const { return m_previousSmtpPasswordExpiryTimestampHasBeenSet; } + + /** + *

    The previous password expiry timestamp of the ingress endpoint resource.

    + */ + inline void SetPreviousSmtpPasswordExpiryTimestamp(const Aws::Utils::DateTime& value) { m_previousSmtpPasswordExpiryTimestampHasBeenSet = true; m_previousSmtpPasswordExpiryTimestamp = value; } + + /** + *

    The previous password expiry timestamp of the ingress endpoint resource.

    + */ + inline void SetPreviousSmtpPasswordExpiryTimestamp(Aws::Utils::DateTime&& value) { m_previousSmtpPasswordExpiryTimestampHasBeenSet = true; m_previousSmtpPasswordExpiryTimestamp = std::move(value); } + + /** + *

    The previous password expiry timestamp of the ingress endpoint resource.

    + */ + inline IngressPointPasswordConfiguration& WithPreviousSmtpPasswordExpiryTimestamp(const Aws::Utils::DateTime& value) { SetPreviousSmtpPasswordExpiryTimestamp(value); return *this;} + + /** + *

    The previous password expiry timestamp of the ingress endpoint resource.

    + */ + inline IngressPointPasswordConfiguration& WithPreviousSmtpPasswordExpiryTimestamp(Aws::Utils::DateTime&& value) { SetPreviousSmtpPasswordExpiryTimestamp(std::move(value)); return *this;} + + + /** + *

    The previous password version of the ingress endpoint resource.

    + */ + inline const Aws::String& GetPreviousSmtpPasswordVersion() const{ return m_previousSmtpPasswordVersion; } + + /** + *

    The previous password version of the ingress endpoint resource.

    + */ + inline bool PreviousSmtpPasswordVersionHasBeenSet() const { return m_previousSmtpPasswordVersionHasBeenSet; } + + /** + *

    The previous password version of the ingress endpoint resource.

    + */ + inline void SetPreviousSmtpPasswordVersion(const Aws::String& value) { m_previousSmtpPasswordVersionHasBeenSet = true; m_previousSmtpPasswordVersion = value; } + + /** + *

    The previous password version of the ingress endpoint resource.

    + */ + inline void SetPreviousSmtpPasswordVersion(Aws::String&& value) { m_previousSmtpPasswordVersionHasBeenSet = true; m_previousSmtpPasswordVersion = std::move(value); } + + /** + *

    The previous password version of the ingress endpoint resource.

    + */ + inline void SetPreviousSmtpPasswordVersion(const char* value) { m_previousSmtpPasswordVersionHasBeenSet = true; m_previousSmtpPasswordVersion.assign(value); } + + /** + *

    The previous password version of the ingress endpoint resource.

    + */ + inline IngressPointPasswordConfiguration& WithPreviousSmtpPasswordVersion(const Aws::String& value) { SetPreviousSmtpPasswordVersion(value); return *this;} + + /** + *

    The previous password version of the ingress endpoint resource.

    + */ + inline IngressPointPasswordConfiguration& WithPreviousSmtpPasswordVersion(Aws::String&& value) { SetPreviousSmtpPasswordVersion(std::move(value)); return *this;} + + /** + *

    The previous password version of the ingress endpoint resource.

    + */ + inline IngressPointPasswordConfiguration& WithPreviousSmtpPasswordVersion(const char* value) { SetPreviousSmtpPasswordVersion(value); return *this;} + + + /** + *

    The current password expiry timestamp of the ingress endpoint resource.

    + */ + inline const Aws::String& GetSmtpPasswordVersion() const{ return m_smtpPasswordVersion; } + + /** + *

    The current password expiry timestamp of the ingress endpoint resource.

    + */ + inline bool SmtpPasswordVersionHasBeenSet() const { return m_smtpPasswordVersionHasBeenSet; } + + /** + *

    The current password expiry timestamp of the ingress endpoint resource.

    + */ + inline void SetSmtpPasswordVersion(const Aws::String& value) { m_smtpPasswordVersionHasBeenSet = true; m_smtpPasswordVersion = value; } + + /** + *

    The current password expiry timestamp of the ingress endpoint resource.

    + */ + inline void SetSmtpPasswordVersion(Aws::String&& value) { m_smtpPasswordVersionHasBeenSet = true; m_smtpPasswordVersion = std::move(value); } + + /** + *

    The current password expiry timestamp of the ingress endpoint resource.

    + */ + inline void SetSmtpPasswordVersion(const char* value) { m_smtpPasswordVersionHasBeenSet = true; m_smtpPasswordVersion.assign(value); } + + /** + *

    The current password expiry timestamp of the ingress endpoint resource.

    + */ + inline IngressPointPasswordConfiguration& WithSmtpPasswordVersion(const Aws::String& value) { SetSmtpPasswordVersion(value); return *this;} + + /** + *

    The current password expiry timestamp of the ingress endpoint resource.

    + */ + inline IngressPointPasswordConfiguration& WithSmtpPasswordVersion(Aws::String&& value) { SetSmtpPasswordVersion(std::move(value)); return *this;} + + /** + *

    The current password expiry timestamp of the ingress endpoint resource.

    + */ + inline IngressPointPasswordConfiguration& WithSmtpPasswordVersion(const char* value) { SetSmtpPasswordVersion(value); return *this;} + + private: + + Aws::Utils::DateTime m_previousSmtpPasswordExpiryTimestamp; + bool m_previousSmtpPasswordExpiryTimestampHasBeenSet = false; + + Aws::String m_previousSmtpPasswordVersion; + bool m_previousSmtpPasswordVersionHasBeenSet = false; + + Aws::String m_smtpPasswordVersion; + bool m_smtpPasswordVersionHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointStatus.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointStatus.h new file mode 100644 index 00000000000..b5f46a8bdbd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointStatus.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressPointStatus + { + NOT_SET, + PROVISIONING, + DEPROVISIONING, + UPDATING, + ACTIVE, + CLOSED, + FAILED + }; + +namespace IngressPointStatusMapper +{ +AWS_MAILMANAGER_API IngressPointStatus GetIngressPointStatusForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressPointStatus(IngressPointStatus value); +} // namespace IngressPointStatusMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointStatusToUpdate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointStatusToUpdate.h new file mode 100644 index 00000000000..6a8902dfe77 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointStatusToUpdate.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressPointStatusToUpdate + { + NOT_SET, + ACTIVE, + CLOSED + }; + +namespace IngressPointStatusToUpdateMapper +{ +AWS_MAILMANAGER_API IngressPointStatusToUpdate GetIngressPointStatusToUpdateForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressPointStatusToUpdate(IngressPointStatusToUpdate value); +} // namespace IngressPointStatusToUpdateMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointType.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointType.h new file mode 100644 index 00000000000..bdfc8fd75c1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressPointType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressPointType + { + NOT_SET, + OPEN, + AUTH + }; + +namespace IngressPointTypeMapper +{ +AWS_MAILMANAGER_API IngressPointType GetIngressPointTypeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressPointType(IngressPointType value); +} // namespace IngressPointTypeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringEmailAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringEmailAttribute.h new file mode 100644 index 00000000000..0b44c01e80e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringEmailAttribute.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressStringEmailAttribute + { + NOT_SET, + RECIPIENT + }; + +namespace IngressStringEmailAttributeMapper +{ +AWS_MAILMANAGER_API IngressStringEmailAttribute GetIngressStringEmailAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressStringEmailAttribute(IngressStringEmailAttribute value); +} // namespace IngressStringEmailAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringExpression.h new file mode 100644 index 00000000000..2f960aae7a5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringExpression.h @@ -0,0 +1,165 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The structure for a string based condition matching on the incoming + * mail.

    See Also:

    AWS + * API Reference

    + */ + class IngressStringExpression + { + public: + AWS_MAILMANAGER_API IngressStringExpression(); + AWS_MAILMANAGER_API IngressStringExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressStringExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The left hand side argument of a string condition expression.

    + */ + inline const IngressStringToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The left hand side argument of a string condition expression.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The left hand side argument of a string condition expression.

    + */ + inline void SetEvaluate(const IngressStringToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The left hand side argument of a string condition expression.

    + */ + inline void SetEvaluate(IngressStringToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The left hand side argument of a string condition expression.

    + */ + inline IngressStringExpression& WithEvaluate(const IngressStringToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The left hand side argument of a string condition expression.

    + */ + inline IngressStringExpression& WithEvaluate(IngressStringToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The matching operator for a string condition expression.

    + */ + inline const IngressStringOperator& GetOperator() const{ return m_operator; } + + /** + *

    The matching operator for a string condition expression.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The matching operator for a string condition expression.

    + */ + inline void SetOperator(const IngressStringOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The matching operator for a string condition expression.

    + */ + inline void SetOperator(IngressStringOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The matching operator for a string condition expression.

    + */ + inline IngressStringExpression& WithOperator(const IngressStringOperator& value) { SetOperator(value); return *this;} + + /** + *

    The matching operator for a string condition expression.

    + */ + inline IngressStringExpression& WithOperator(IngressStringOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline IngressStringExpression& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline IngressStringExpression& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline IngressStringExpression& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline IngressStringExpression& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + + /** + *

    The right hand side argument of a string condition expression.

    + */ + inline IngressStringExpression& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + private: + + IngressStringToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + IngressStringOperator m_operator; + bool m_operatorHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringOperator.h new file mode 100644 index 00000000000..8d11c403c06 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringOperator.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressStringOperator + { + NOT_SET, + EQUALS, + NOT_EQUALS, + STARTS_WITH, + ENDS_WITH, + CONTAINS + }; + +namespace IngressStringOperatorMapper +{ +AWS_MAILMANAGER_API IngressStringOperator GetIngressStringOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressStringOperator(IngressStringOperator value); +} // namespace IngressStringOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringToEvaluate.h new file mode 100644 index 00000000000..33ddf50f4fb --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressStringToEvaluate.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The union type representing the allowed types for the left hand side of a + * string condition.

    See Also:

    AWS + * API Reference

    + */ + class IngressStringToEvaluate + { + public: + AWS_MAILMANAGER_API IngressStringToEvaluate(); + AWS_MAILMANAGER_API IngressStringToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressStringToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The enum type representing the allowed attribute types for a string + * condition.

    + */ + inline const IngressStringEmailAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The enum type representing the allowed attribute types for a string + * condition.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The enum type representing the allowed attribute types for a string + * condition.

    + */ + inline void SetAttribute(const IngressStringEmailAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The enum type representing the allowed attribute types for a string + * condition.

    + */ + inline void SetAttribute(IngressStringEmailAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The enum type representing the allowed attribute types for a string + * condition.

    + */ + inline IngressStringToEvaluate& WithAttribute(const IngressStringEmailAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The enum type representing the allowed attribute types for a string + * condition.

    + */ + inline IngressStringToEvaluate& WithAttribute(IngressStringEmailAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + IngressStringEmailAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsAttribute.h new file mode 100644 index 00000000000..2ea8632d52d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsAttribute.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressTlsAttribute + { + NOT_SET, + TLS_PROTOCOL + }; + +namespace IngressTlsAttributeMapper +{ +AWS_MAILMANAGER_API IngressTlsAttribute GetIngressTlsAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressTlsAttribute(IngressTlsAttribute value); +} // namespace IngressTlsAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolAttribute.h new file mode 100644 index 00000000000..926ba2fc0e0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolAttribute.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressTlsProtocolAttribute + { + NOT_SET, + TLS1_2, + TLS1_3 + }; + +namespace IngressTlsProtocolAttributeMapper +{ +AWS_MAILMANAGER_API IngressTlsProtocolAttribute GetIngressTlsProtocolAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressTlsProtocolAttribute(IngressTlsProtocolAttribute value); +} // namespace IngressTlsProtocolAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolExpression.h new file mode 100644 index 00000000000..c275110a623 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolExpression.h @@ -0,0 +1,149 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The structure for a TLS related condition matching on the incoming + * mail.

    See Also:

    AWS + * API Reference

    + */ + class IngressTlsProtocolExpression + { + public: + AWS_MAILMANAGER_API IngressTlsProtocolExpression(); + AWS_MAILMANAGER_API IngressTlsProtocolExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressTlsProtocolExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The left hand side argument of a TLS condition expression.

    + */ + inline const IngressTlsProtocolToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The left hand side argument of a TLS condition expression.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The left hand side argument of a TLS condition expression.

    + */ + inline void SetEvaluate(const IngressTlsProtocolToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The left hand side argument of a TLS condition expression.

    + */ + inline void SetEvaluate(IngressTlsProtocolToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The left hand side argument of a TLS condition expression.

    + */ + inline IngressTlsProtocolExpression& WithEvaluate(const IngressTlsProtocolToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The left hand side argument of a TLS condition expression.

    + */ + inline IngressTlsProtocolExpression& WithEvaluate(IngressTlsProtocolToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The matching operator for a TLS condition expression.

    + */ + inline const IngressTlsProtocolOperator& GetOperator() const{ return m_operator; } + + /** + *

    The matching operator for a TLS condition expression.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The matching operator for a TLS condition expression.

    + */ + inline void SetOperator(const IngressTlsProtocolOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The matching operator for a TLS condition expression.

    + */ + inline void SetOperator(IngressTlsProtocolOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The matching operator for a TLS condition expression.

    + */ + inline IngressTlsProtocolExpression& WithOperator(const IngressTlsProtocolOperator& value) { SetOperator(value); return *this;} + + /** + *

    The matching operator for a TLS condition expression.

    + */ + inline IngressTlsProtocolExpression& WithOperator(IngressTlsProtocolOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The right hand side argument of a TLS condition expression.

    + */ + inline const IngressTlsProtocolAttribute& GetValue() const{ return m_value; } + + /** + *

    The right hand side argument of a TLS condition expression.

    + */ + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + + /** + *

    The right hand side argument of a TLS condition expression.

    + */ + inline void SetValue(const IngressTlsProtocolAttribute& value) { m_valueHasBeenSet = true; m_value = value; } + + /** + *

    The right hand side argument of a TLS condition expression.

    + */ + inline void SetValue(IngressTlsProtocolAttribute&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + + /** + *

    The right hand side argument of a TLS condition expression.

    + */ + inline IngressTlsProtocolExpression& WithValue(const IngressTlsProtocolAttribute& value) { SetValue(value); return *this;} + + /** + *

    The right hand side argument of a TLS condition expression.

    + */ + inline IngressTlsProtocolExpression& WithValue(IngressTlsProtocolAttribute&& value) { SetValue(std::move(value)); return *this;} + + private: + + IngressTlsProtocolToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + IngressTlsProtocolOperator m_operator; + bool m_operatorHasBeenSet = false; + + IngressTlsProtocolAttribute m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolOperator.h new file mode 100644 index 00000000000..3b224392096 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolOperator.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class IngressTlsProtocolOperator + { + NOT_SET, + MINIMUM_TLS_VERSION, + IS + }; + +namespace IngressTlsProtocolOperatorMapper +{ +AWS_MAILMANAGER_API IngressTlsProtocolOperator GetIngressTlsProtocolOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForIngressTlsProtocolOperator(IngressTlsProtocolOperator value); +} // namespace IngressTlsProtocolOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolToEvaluate.h new file mode 100644 index 00000000000..d662e368c1f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/IngressTlsProtocolToEvaluate.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The union type representing the allowed types for the left hand side of a TLS + * condition.

    See Also:

    AWS + * API Reference

    + */ + class IngressTlsProtocolToEvaluate + { + public: + AWS_MAILMANAGER_API IngressTlsProtocolToEvaluate(); + AWS_MAILMANAGER_API IngressTlsProtocolToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API IngressTlsProtocolToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The enum type representing the allowed attribute types for the TLS + * condition.

    + */ + inline const IngressTlsAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The enum type representing the allowed attribute types for the TLS + * condition.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The enum type representing the allowed attribute types for the TLS + * condition.

    + */ + inline void SetAttribute(const IngressTlsAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The enum type representing the allowed attribute types for the TLS + * condition.

    + */ + inline void SetAttribute(IngressTlsAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The enum type representing the allowed attribute types for the TLS + * condition.

    + */ + inline IngressTlsProtocolToEvaluate& WithAttribute(const IngressTlsAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The enum type representing the allowed attribute types for the TLS + * condition.

    + */ + inline IngressTlsProtocolToEvaluate& WithAttribute(IngressTlsAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + IngressTlsAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonInstancesRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonInstancesRequest.h new file mode 100644 index 00000000000..2703d803135 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonInstancesRequest.h @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class ListAddonInstancesRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListAddonInstancesRequest(); + + // 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 "ListAddonInstances"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListAddonInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListAddonInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListAddonInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline ListAddonInstancesRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonInstancesResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonInstancesResult.h new file mode 100644 index 00000000000..738c7f641ce --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonInstancesResult.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class ListAddonInstancesResult + { + public: + AWS_MAILMANAGER_API ListAddonInstancesResult(); + AWS_MAILMANAGER_API ListAddonInstancesResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListAddonInstancesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The list of ingress endpoints.

    + */ + inline const Aws::Vector& GetAddonInstances() const{ return m_addonInstances; } + + /** + *

    The list of ingress endpoints.

    + */ + inline void SetAddonInstances(const Aws::Vector& value) { m_addonInstances = value; } + + /** + *

    The list of ingress endpoints.

    + */ + inline void SetAddonInstances(Aws::Vector&& value) { m_addonInstances = std::move(value); } + + /** + *

    The list of ingress endpoints.

    + */ + inline ListAddonInstancesResult& WithAddonInstances(const Aws::Vector& value) { SetAddonInstances(value); return *this;} + + /** + *

    The list of ingress endpoints.

    + */ + inline ListAddonInstancesResult& WithAddonInstances(Aws::Vector&& value) { SetAddonInstances(std::move(value)); return *this;} + + /** + *

    The list of ingress endpoints.

    + */ + inline ListAddonInstancesResult& AddAddonInstances(const AddonInstance& value) { m_addonInstances.push_back(value); return *this; } + + /** + *

    The list of ingress endpoints.

    + */ + inline ListAddonInstancesResult& AddAddonInstances(AddonInstance&& value) { m_addonInstances.push_back(std::move(value)); return *this; } + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListAddonInstancesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListAddonInstancesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListAddonInstancesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListAddonInstancesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListAddonInstancesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListAddonInstancesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_addonInstances; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonSubscriptionsRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonSubscriptionsRequest.h new file mode 100644 index 00000000000..e5055475959 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonSubscriptionsRequest.h @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class ListAddonSubscriptionsRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListAddonSubscriptionsRequest(); + + // 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 "ListAddonSubscriptions"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListAddonSubscriptionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListAddonSubscriptionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListAddonSubscriptionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline ListAddonSubscriptionsRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonSubscriptionsResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonSubscriptionsResult.h new file mode 100644 index 00000000000..9e56c4e18f4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListAddonSubscriptionsResult.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class ListAddonSubscriptionsResult + { + public: + AWS_MAILMANAGER_API ListAddonSubscriptionsResult(); + AWS_MAILMANAGER_API ListAddonSubscriptionsResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListAddonSubscriptionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The list of ingress endpoints.

    + */ + inline const Aws::Vector& GetAddonSubscriptions() const{ return m_addonSubscriptions; } + + /** + *

    The list of ingress endpoints.

    + */ + inline void SetAddonSubscriptions(const Aws::Vector& value) { m_addonSubscriptions = value; } + + /** + *

    The list of ingress endpoints.

    + */ + inline void SetAddonSubscriptions(Aws::Vector&& value) { m_addonSubscriptions = std::move(value); } + + /** + *

    The list of ingress endpoints.

    + */ + inline ListAddonSubscriptionsResult& WithAddonSubscriptions(const Aws::Vector& value) { SetAddonSubscriptions(value); return *this;} + + /** + *

    The list of ingress endpoints.

    + */ + inline ListAddonSubscriptionsResult& WithAddonSubscriptions(Aws::Vector&& value) { SetAddonSubscriptions(std::move(value)); return *this;} + + /** + *

    The list of ingress endpoints.

    + */ + inline ListAddonSubscriptionsResult& AddAddonSubscriptions(const AddonSubscription& value) { m_addonSubscriptions.push_back(value); return *this; } + + /** + *

    The list of ingress endpoints.

    + */ + inline ListAddonSubscriptionsResult& AddAddonSubscriptions(AddonSubscription&& value) { m_addonSubscriptions.push_back(std::move(value)); return *this; } + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListAddonSubscriptionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListAddonSubscriptionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListAddonSubscriptionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListAddonSubscriptionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListAddonSubscriptionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListAddonSubscriptionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_addonSubscriptions; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveExportsRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveExportsRequest.h new file mode 100644 index 00000000000..45a31110668 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveExportsRequest.h @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to list archive export jobs in your account.

    See + * Also:

    AWS + * API Reference

    + */ + class ListArchiveExportsRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListArchiveExportsRequest(); + + // 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 "ListArchiveExports"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the archive.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive.

    + */ + inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; } + + /** + *

    The identifier of the archive.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; } + + /** + *

    The identifier of the archive.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive.

    + */ + inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); } + + /** + *

    The identifier of the archive.

    + */ + inline ListArchiveExportsRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive.

    + */ + inline ListArchiveExportsRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive.

    + */ + inline ListArchiveExportsRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchiveExportsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchiveExportsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchiveExportsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of archive export jobs that are returned per call. You can + * use NextToken to obtain further pages of archives.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The maximum number of archive export jobs that are returned per call. You can + * use NextToken to obtain further pages of archives.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The maximum number of archive export jobs that are returned per call. You can + * use NextToken to obtain further pages of archives.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The maximum number of archive export jobs that are returned per call. You can + * use NextToken to obtain further pages of archives.

    + */ + inline ListArchiveExportsRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_archiveId; + bool m_archiveIdHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveExportsResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveExportsResult.h new file mode 100644 index 00000000000..a209c880d6e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveExportsResult.h @@ -0,0 +1,147 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing a list of archive export jobs and their + * statuses.

    See Also:

    AWS + * API Reference

    + */ + class ListArchiveExportsResult + { + public: + AWS_MAILMANAGER_API ListArchiveExportsResult(); + AWS_MAILMANAGER_API ListArchiveExportsResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListArchiveExportsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The list of export job identifiers and statuses.

    + */ + inline const Aws::Vector& GetExports() const{ return m_exports; } + + /** + *

    The list of export job identifiers and statuses.

    + */ + inline void SetExports(const Aws::Vector& value) { m_exports = value; } + + /** + *

    The list of export job identifiers and statuses.

    + */ + inline void SetExports(Aws::Vector&& value) { m_exports = std::move(value); } + + /** + *

    The list of export job identifiers and statuses.

    + */ + inline ListArchiveExportsResult& WithExports(const Aws::Vector& value) { SetExports(value); return *this;} + + /** + *

    The list of export job identifiers and statuses.

    + */ + inline ListArchiveExportsResult& WithExports(Aws::Vector&& value) { SetExports(std::move(value)); return *this;} + + /** + *

    The list of export job identifiers and statuses.

    + */ + inline ListArchiveExportsResult& AddExports(const ExportSummary& value) { m_exports.push_back(value); return *this; } + + /** + *

    The list of export job identifiers and statuses.

    + */ + inline ListArchiveExportsResult& AddExports(ExportSummary&& value) { m_exports.push_back(std::move(value)); return *this; } + + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchiveExportsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchiveExportsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchiveExportsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListArchiveExportsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListArchiveExportsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListArchiveExportsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_exports; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveSearchesRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveSearchesRequest.h new file mode 100644 index 00000000000..b71427e04f1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveSearchesRequest.h @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to list archive search jobs in your account.

    See + * Also:

    AWS + * API Reference

    + */ + class ListArchiveSearchesRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListArchiveSearchesRequest(); + + // 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 "ListArchiveSearches"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the archive.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive.

    + */ + inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; } + + /** + *

    The identifier of the archive.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; } + + /** + *

    The identifier of the archive.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive.

    + */ + inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); } + + /** + *

    The identifier of the archive.

    + */ + inline ListArchiveSearchesRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive.

    + */ + inline ListArchiveSearchesRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive.

    + */ + inline ListArchiveSearchesRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchiveSearchesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchiveSearchesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchiveSearchesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of archive search jobs that are returned per call. You can + * use NextToken to obtain further pages of archives.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The maximum number of archive search jobs that are returned per call. You can + * use NextToken to obtain further pages of archives.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The maximum number of archive search jobs that are returned per call. You can + * use NextToken to obtain further pages of archives.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The maximum number of archive search jobs that are returned per call. You can + * use NextToken to obtain further pages of archives.

    + */ + inline ListArchiveSearchesRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_archiveId; + bool m_archiveIdHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveSearchesResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveSearchesResult.h new file mode 100644 index 00000000000..03bd5f68d9c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchiveSearchesResult.h @@ -0,0 +1,147 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing a list of archive search jobs and their + * statuses.

    See Also:

    AWS + * API Reference

    + */ + class ListArchiveSearchesResult + { + public: + AWS_MAILMANAGER_API ListArchiveSearchesResult(); + AWS_MAILMANAGER_API ListArchiveSearchesResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListArchiveSearchesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchiveSearchesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchiveSearchesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchiveSearchesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The list of search job identifiers and statuses.

    + */ + inline const Aws::Vector& GetSearches() const{ return m_searches; } + + /** + *

    The list of search job identifiers and statuses.

    + */ + inline void SetSearches(const Aws::Vector& value) { m_searches = value; } + + /** + *

    The list of search job identifiers and statuses.

    + */ + inline void SetSearches(Aws::Vector&& value) { m_searches = std::move(value); } + + /** + *

    The list of search job identifiers and statuses.

    + */ + inline ListArchiveSearchesResult& WithSearches(const Aws::Vector& value) { SetSearches(value); return *this;} + + /** + *

    The list of search job identifiers and statuses.

    + */ + inline ListArchiveSearchesResult& WithSearches(Aws::Vector&& value) { SetSearches(std::move(value)); return *this;} + + /** + *

    The list of search job identifiers and statuses.

    + */ + inline ListArchiveSearchesResult& AddSearches(const SearchSummary& value) { m_searches.push_back(value); return *this; } + + /** + *

    The list of search job identifiers and statuses.

    + */ + inline ListArchiveSearchesResult& AddSearches(SearchSummary&& value) { m_searches.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListArchiveSearchesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListArchiveSearchesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListArchiveSearchesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_nextToken; + + Aws::Vector m_searches; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchivesRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchivesRequest.h new file mode 100644 index 00000000000..36a0a04eb14 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchivesRequest.h @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to list email archives in your account.

    See Also:

    + * AWS + * API Reference

    + */ + class ListArchivesRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListArchivesRequest(); + + // 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 "ListArchives"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchivesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchivesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListArchivesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of archives that are returned per call. You can use + * NextToken to obtain further pages of archives.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The maximum number of archives that are returned per call. You can use + * NextToken to obtain further pages of archives.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The maximum number of archives that are returned per call. You can use + * NextToken to obtain further pages of archives.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The maximum number of archives that are returned per call. You can use + * NextToken to obtain further pages of archives.

    + */ + inline ListArchivesRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchivesResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchivesResult.h new file mode 100644 index 00000000000..01ee0bb7e81 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListArchivesResult.h @@ -0,0 +1,147 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response containing a list of your email archives.

    See + * Also:

    AWS + * API Reference

    + */ + class ListArchivesResult + { + public: + AWS_MAILMANAGER_API ListArchivesResult(); + AWS_MAILMANAGER_API ListArchivesResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListArchivesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The list of archive details.

    + */ + inline const Aws::Vector& GetArchives() const{ return m_archives; } + + /** + *

    The list of archive details.

    + */ + inline void SetArchives(const Aws::Vector& value) { m_archives = value; } + + /** + *

    The list of archive details.

    + */ + inline void SetArchives(Aws::Vector&& value) { m_archives = std::move(value); } + + /** + *

    The list of archive details.

    + */ + inline ListArchivesResult& WithArchives(const Aws::Vector& value) { SetArchives(value); return *this;} + + /** + *

    The list of archive details.

    + */ + inline ListArchivesResult& WithArchives(Aws::Vector&& value) { SetArchives(std::move(value)); return *this;} + + /** + *

    The list of archive details.

    + */ + inline ListArchivesResult& AddArchives(const Archive& value) { m_archives.push_back(value); return *this; } + + /** + *

    The list of archive details.

    + */ + inline ListArchivesResult& AddArchives(Archive&& value) { m_archives.push_back(std::move(value)); return *this; } + + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchivesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchivesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If present, use to retrieve the next page of results.

    + */ + inline ListArchivesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListArchivesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListArchivesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListArchivesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_archives; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListIngressPointsRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListIngressPointsRequest.h new file mode 100644 index 00000000000..1c2230aa3a6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListIngressPointsRequest.h @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class ListIngressPointsRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListIngressPointsRequest(); + + // 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 "ListIngressPoints"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListIngressPointsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListIngressPointsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListIngressPointsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The maximum number of ingress endpoint resources that are returned per call. + * You can use NextToken to obtain further ingress endpoints.

    + */ + inline ListIngressPointsRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListIngressPointsResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListIngressPointsResult.h new file mode 100644 index 00000000000..4bca004c5f6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListIngressPointsResult.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class ListIngressPointsResult + { + public: + AWS_MAILMANAGER_API ListIngressPointsResult(); + AWS_MAILMANAGER_API ListIngressPointsResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListIngressPointsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The list of ingress endpoints.

    + */ + inline const Aws::Vector& GetIngressPoints() const{ return m_ingressPoints; } + + /** + *

    The list of ingress endpoints.

    + */ + inline void SetIngressPoints(const Aws::Vector& value) { m_ingressPoints = value; } + + /** + *

    The list of ingress endpoints.

    + */ + inline void SetIngressPoints(Aws::Vector&& value) { m_ingressPoints = std::move(value); } + + /** + *

    The list of ingress endpoints.

    + */ + inline ListIngressPointsResult& WithIngressPoints(const Aws::Vector& value) { SetIngressPoints(value); return *this;} + + /** + *

    The list of ingress endpoints.

    + */ + inline ListIngressPointsResult& WithIngressPoints(Aws::Vector&& value) { SetIngressPoints(std::move(value)); return *this;} + + /** + *

    The list of ingress endpoints.

    + */ + inline ListIngressPointsResult& AddIngressPoints(const IngressPoint& value) { m_ingressPoints.push_back(value); return *this; } + + /** + *

    The list of ingress endpoints.

    + */ + inline ListIngressPointsResult& AddIngressPoints(IngressPoint&& value) { m_ingressPoints.push_back(std::move(value)); return *this; } + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListIngressPointsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListIngressPointsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListIngressPointsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListIngressPointsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListIngressPointsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListIngressPointsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_ingressPoints; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRelaysRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRelaysRequest.h new file mode 100644 index 00000000000..4aff1d791d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRelaysRequest.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class ListRelaysRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListRelaysRequest(); + + // 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 "ListRelays"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListRelaysRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListRelaysRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListRelaysRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The number of relays to be returned in one request.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The number of relays to be returned in one request.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The number of relays to be returned in one request.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The number of relays to be returned in one request.

    + */ + inline ListRelaysRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRelaysResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRelaysResult.h new file mode 100644 index 00000000000..aa748675cdc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRelaysResult.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class ListRelaysResult + { + public: + AWS_MAILMANAGER_API ListRelaysResult(); + AWS_MAILMANAGER_API ListRelaysResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListRelaysResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListRelaysResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListRelaysResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListRelaysResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The list of returned relays.

    + */ + inline const Aws::Vector& GetRelays() const{ return m_relays; } + + /** + *

    The list of returned relays.

    + */ + inline void SetRelays(const Aws::Vector& value) { m_relays = value; } + + /** + *

    The list of returned relays.

    + */ + inline void SetRelays(Aws::Vector&& value) { m_relays = std::move(value); } + + /** + *

    The list of returned relays.

    + */ + inline ListRelaysResult& WithRelays(const Aws::Vector& value) { SetRelays(value); return *this;} + + /** + *

    The list of returned relays.

    + */ + inline ListRelaysResult& WithRelays(Aws::Vector&& value) { SetRelays(std::move(value)); return *this;} + + /** + *

    The list of returned relays.

    + */ + inline ListRelaysResult& AddRelays(const Relay& value) { m_relays.push_back(value); return *this; } + + /** + *

    The list of returned relays.

    + */ + inline ListRelaysResult& AddRelays(Relay&& value) { m_relays.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListRelaysResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListRelaysResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListRelaysResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_nextToken; + + Aws::Vector m_relays; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRuleSetsRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRuleSetsRequest.h new file mode 100644 index 00000000000..1ccad5edc97 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRuleSetsRequest.h @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class ListRuleSetsRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListRuleSetsRequest(); + + // 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 "ListRuleSets"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListRuleSetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListRuleSetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListRuleSetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of rule set resources that are returned per call. You can + * use NextToken to obtain further rule sets.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The maximum number of rule set resources that are returned per call. You can + * use NextToken to obtain further rule sets.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The maximum number of rule set resources that are returned per call. You can + * use NextToken to obtain further rule sets.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The maximum number of rule set resources that are returned per call. You can + * use NextToken to obtain further rule sets.

    + */ + inline ListRuleSetsRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRuleSetsResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRuleSetsResult.h new file mode 100644 index 00000000000..1d4ccc8ebb4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListRuleSetsResult.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class ListRuleSetsResult + { + public: + AWS_MAILMANAGER_API ListRuleSetsResult(); + AWS_MAILMANAGER_API ListRuleSetsResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListRuleSetsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListRuleSetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListRuleSetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListRuleSetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The list of rule sets.

    + */ + inline const Aws::Vector& GetRuleSets() const{ return m_ruleSets; } + + /** + *

    The list of rule sets.

    + */ + inline void SetRuleSets(const Aws::Vector& value) { m_ruleSets = value; } + + /** + *

    The list of rule sets.

    + */ + inline void SetRuleSets(Aws::Vector&& value) { m_ruleSets = std::move(value); } + + /** + *

    The list of rule sets.

    + */ + inline ListRuleSetsResult& WithRuleSets(const Aws::Vector& value) { SetRuleSets(value); return *this;} + + /** + *

    The list of rule sets.

    + */ + inline ListRuleSetsResult& WithRuleSets(Aws::Vector&& value) { SetRuleSets(std::move(value)); return *this;} + + /** + *

    The list of rule sets.

    + */ + inline ListRuleSetsResult& AddRuleSets(const RuleSet& value) { m_ruleSets.push_back(value); return *this; } + + /** + *

    The list of rule sets.

    + */ + inline ListRuleSetsResult& AddRuleSets(RuleSet&& value) { m_ruleSets.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListRuleSetsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListRuleSetsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListRuleSetsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_nextToken; + + Aws::Vector m_ruleSets; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTagsForResourceRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTagsForResourceRequest.h new file mode 100644 index 00000000000..c16b4c9d533 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTagsForResourceRequest.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class ListTagsForResourceRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API 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_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    + */ + inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    + */ + inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    + */ + inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTagsForResourceResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTagsForResourceResult.h new file mode 100644 index 00000000000..59424049a61 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTagsForResourceResult.h @@ -0,0 +1,110 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class ListTagsForResourceResult + { + public: + AWS_MAILMANAGER_API ListTagsForResourceResult(); + AWS_MAILMANAGER_API ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline ListTagsForResourceResult& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline ListTagsForResourceResult& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListTagsForResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListTagsForResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListTagsForResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::Vector m_tags; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTrafficPoliciesRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTrafficPoliciesRequest.h new file mode 100644 index 00000000000..da8e556c8d6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTrafficPoliciesRequest.h @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class ListTrafficPoliciesRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API ListTrafficPoliciesRequest(); + + // 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 "ListTrafficPolicies"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListTrafficPoliciesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListTrafficPoliciesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If you received a pagination token from a previous call to this API, you can + * provide it here to continue paginating through the next page of results.

    + */ + inline ListTrafficPoliciesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The maximum number of traffic policy resources that are returned per call. + * You can use NextToken to obtain further traffic policies.

    + */ + inline int GetPageSize() const{ return m_pageSize; } + + /** + *

    The maximum number of traffic policy resources that are returned per call. + * You can use NextToken to obtain further traffic policies.

    + */ + inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } + + /** + *

    The maximum number of traffic policy resources that are returned per call. + * You can use NextToken to obtain further traffic policies.

    + */ + inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } + + /** + *

    The maximum number of traffic policy resources that are returned per call. + * You can use NextToken to obtain further traffic policies.

    + */ + inline ListTrafficPoliciesRequest& WithPageSize(int value) { SetPageSize(value); return *this;} + + private: + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_pageSize; + bool m_pageSizeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTrafficPoliciesResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTrafficPoliciesResult.h new file mode 100644 index 00000000000..917ae4907b6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ListTrafficPoliciesResult.h @@ -0,0 +1,155 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class ListTrafficPoliciesResult + { + public: + AWS_MAILMANAGER_API ListTrafficPoliciesResult(); + AWS_MAILMANAGER_API ListTrafficPoliciesResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API ListTrafficPoliciesResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListTrafficPoliciesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListTrafficPoliciesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *

    If NextToken is returned, there are more results available. The value of + * NextToken is a unique pagination token for each page. Make the call again using + * the returned token to retrieve the next page.

    + */ + inline ListTrafficPoliciesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *

    The list of traffic policies.

    + */ + inline const Aws::Vector& GetTrafficPolicies() const{ return m_trafficPolicies; } + + /** + *

    The list of traffic policies.

    + */ + inline void SetTrafficPolicies(const Aws::Vector& value) { m_trafficPolicies = value; } + + /** + *

    The list of traffic policies.

    + */ + inline void SetTrafficPolicies(Aws::Vector&& value) { m_trafficPolicies = std::move(value); } + + /** + *

    The list of traffic policies.

    + */ + inline ListTrafficPoliciesResult& WithTrafficPolicies(const Aws::Vector& value) { SetTrafficPolicies(value); return *this;} + + /** + *

    The list of traffic policies.

    + */ + inline ListTrafficPoliciesResult& WithTrafficPolicies(Aws::Vector&& value) { SetTrafficPolicies(std::move(value)); return *this;} + + /** + *

    The list of traffic policies.

    + */ + inline ListTrafficPoliciesResult& AddTrafficPolicies(const TrafficPolicy& value) { m_trafficPolicies.push_back(value); return *this; } + + /** + *

    The list of traffic policies.

    + */ + inline ListTrafficPoliciesResult& AddTrafficPolicies(TrafficPolicy&& value) { m_trafficPolicies.push_back(std::move(value)); return *this; } + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline ListTrafficPoliciesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline ListTrafficPoliciesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline ListTrafficPoliciesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_nextToken; + + Aws::Vector m_trafficPolicies; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/MailFrom.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/MailFrom.h new file mode 100644 index 00000000000..0197904ece2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/MailFrom.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class MailFrom + { + NOT_SET, + REPLACE, + PRESERVE + }; + +namespace MailFromMapper +{ +AWS_MAILMANAGER_API MailFrom GetMailFromForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForMailFrom(MailFrom value); +} // namespace MailFromMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/MessageBody.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/MessageBody.h new file mode 100644 index 00000000000..0b1716097bc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/MessageBody.h @@ -0,0 +1,156 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The textual body content of an email message.

    See Also:

    AWS + * API Reference

    + */ + class MessageBody + { + public: + AWS_MAILMANAGER_API MessageBody(); + AWS_MAILMANAGER_API MessageBody(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API MessageBody& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The HTML body content of the message.

    + */ + inline const Aws::String& GetHtml() const{ return m_html; } + + /** + *

    The HTML body content of the message.

    + */ + inline bool HtmlHasBeenSet() const { return m_htmlHasBeenSet; } + + /** + *

    The HTML body content of the message.

    + */ + inline void SetHtml(const Aws::String& value) { m_htmlHasBeenSet = true; m_html = value; } + + /** + *

    The HTML body content of the message.

    + */ + inline void SetHtml(Aws::String&& value) { m_htmlHasBeenSet = true; m_html = std::move(value); } + + /** + *

    The HTML body content of the message.

    + */ + inline void SetHtml(const char* value) { m_htmlHasBeenSet = true; m_html.assign(value); } + + /** + *

    The HTML body content of the message.

    + */ + inline MessageBody& WithHtml(const Aws::String& value) { SetHtml(value); return *this;} + + /** + *

    The HTML body content of the message.

    + */ + inline MessageBody& WithHtml(Aws::String&& value) { SetHtml(std::move(value)); return *this;} + + /** + *

    The HTML body content of the message.

    + */ + inline MessageBody& WithHtml(const char* value) { SetHtml(value); return *this;} + + + /** + *

    A flag indicating if the email was malformed.

    + */ + inline bool GetMessageMalformed() const{ return m_messageMalformed; } + + /** + *

    A flag indicating if the email was malformed.

    + */ + inline bool MessageMalformedHasBeenSet() const { return m_messageMalformedHasBeenSet; } + + /** + *

    A flag indicating if the email was malformed.

    + */ + inline void SetMessageMalformed(bool value) { m_messageMalformedHasBeenSet = true; m_messageMalformed = value; } + + /** + *

    A flag indicating if the email was malformed.

    + */ + inline MessageBody& WithMessageMalformed(bool value) { SetMessageMalformed(value); return *this;} + + + /** + *

    The plain text body content of the message.

    + */ + inline const Aws::String& GetText() const{ return m_text; } + + /** + *

    The plain text body content of the message.

    + */ + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + + /** + *

    The plain text body content of the message.

    + */ + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + + /** + *

    The plain text body content of the message.

    + */ + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + + /** + *

    The plain text body content of the message.

    + */ + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + + /** + *

    The plain text body content of the message.

    + */ + inline MessageBody& WithText(const Aws::String& value) { SetText(value); return *this;} + + /** + *

    The plain text body content of the message.

    + */ + inline MessageBody& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + + /** + *

    The plain text body content of the message.

    + */ + inline MessageBody& WithText(const char* value) { SetText(value); return *this;} + + private: + + Aws::String m_html; + bool m_htmlHasBeenSet = false; + + bool m_messageMalformed; + bool m_messageMalformedHasBeenSet = false; + + Aws::String m_text; + bool m_textHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/NoAuthentication.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/NoAuthentication.h new file mode 100644 index 00000000000..a9b5a57d91d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/NoAuthentication.h @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    Explicitly indicate that the relay destination server does not require SMTP + * credential authentication.

    See Also:

    AWS + * API Reference

    + */ + class NoAuthentication + { + public: + AWS_MAILMANAGER_API NoAuthentication(); + AWS_MAILMANAGER_API NoAuthentication(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API NoAuthentication& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/PolicyCondition.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/PolicyCondition.h new file mode 100644 index 00000000000..c96ffe620d1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/PolicyCondition.h @@ -0,0 +1,232 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The email traffic filtering conditions which are contained in a traffic + * policy resource.

    See Also:

    AWS + * API Reference

    + */ + class PolicyCondition + { + public: + AWS_MAILMANAGER_API PolicyCondition(); + AWS_MAILMANAGER_API PolicyCondition(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API PolicyCondition& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    This represents a boolean type condition matching on the incoming mail. It + * performs the boolean operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline const IngressBooleanExpression& GetBooleanExpression() const{ return m_booleanExpression; } + + /** + *

    This represents a boolean type condition matching on the incoming mail. It + * performs the boolean operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline bool BooleanExpressionHasBeenSet() const { return m_booleanExpressionHasBeenSet; } + + /** + *

    This represents a boolean type condition matching on the incoming mail. It + * performs the boolean operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline void SetBooleanExpression(const IngressBooleanExpression& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = value; } + + /** + *

    This represents a boolean type condition matching on the incoming mail. It + * performs the boolean operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline void SetBooleanExpression(IngressBooleanExpression&& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = std::move(value); } + + /** + *

    This represents a boolean type condition matching on the incoming mail. It + * performs the boolean operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline PolicyCondition& WithBooleanExpression(const IngressBooleanExpression& value) { SetBooleanExpression(value); return *this;} + + /** + *

    This represents a boolean type condition matching on the incoming mail. It + * performs the boolean operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline PolicyCondition& WithBooleanExpression(IngressBooleanExpression&& value) { SetBooleanExpression(std::move(value)); return *this;} + + + /** + *

    This represents an IP based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline const IngressIpv4Expression& GetIpExpression() const{ return m_ipExpression; } + + /** + *

    This represents an IP based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline bool IpExpressionHasBeenSet() const { return m_ipExpressionHasBeenSet; } + + /** + *

    This represents an IP based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline void SetIpExpression(const IngressIpv4Expression& value) { m_ipExpressionHasBeenSet = true; m_ipExpression = value; } + + /** + *

    This represents an IP based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline void SetIpExpression(IngressIpv4Expression&& value) { m_ipExpressionHasBeenSet = true; m_ipExpression = std::move(value); } + + /** + *

    This represents an IP based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline PolicyCondition& WithIpExpression(const IngressIpv4Expression& value) { SetIpExpression(value); return *this;} + + /** + *

    This represents an IP based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline PolicyCondition& WithIpExpression(IngressIpv4Expression&& value) { SetIpExpression(std::move(value)); return *this;} + + + /** + *

    This represents a string based condition matching on the incoming mail. It + * performs the string operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline const IngressStringExpression& GetStringExpression() const{ return m_stringExpression; } + + /** + *

    This represents a string based condition matching on the incoming mail. It + * performs the string operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline bool StringExpressionHasBeenSet() const { return m_stringExpressionHasBeenSet; } + + /** + *

    This represents a string based condition matching on the incoming mail. It + * performs the string operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline void SetStringExpression(const IngressStringExpression& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = value; } + + /** + *

    This represents a string based condition matching on the incoming mail. It + * performs the string operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline void SetStringExpression(IngressStringExpression&& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = std::move(value); } + + /** + *

    This represents a string based condition matching on the incoming mail. It + * performs the string operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline PolicyCondition& WithStringExpression(const IngressStringExpression& value) { SetStringExpression(value); return *this;} + + /** + *

    This represents a string based condition matching on the incoming mail. It + * performs the string operation configured in 'Operator' and evaluates the + * 'Protocol' object against the 'Value'.

    + */ + inline PolicyCondition& WithStringExpression(IngressStringExpression&& value) { SetStringExpression(std::move(value)); return *this;} + + + /** + *

    This represents a TLS based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline const IngressTlsProtocolExpression& GetTlsExpression() const{ return m_tlsExpression; } + + /** + *

    This represents a TLS based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline bool TlsExpressionHasBeenSet() const { return m_tlsExpressionHasBeenSet; } + + /** + *

    This represents a TLS based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline void SetTlsExpression(const IngressTlsProtocolExpression& value) { m_tlsExpressionHasBeenSet = true; m_tlsExpression = value; } + + /** + *

    This represents a TLS based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline void SetTlsExpression(IngressTlsProtocolExpression&& value) { m_tlsExpressionHasBeenSet = true; m_tlsExpression = std::move(value); } + + /** + *

    This represents a TLS based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline PolicyCondition& WithTlsExpression(const IngressTlsProtocolExpression& value) { SetTlsExpression(value); return *this;} + + /** + *

    This represents a TLS based condition matching on the incoming mail. It + * performs the operation configured in 'Operator' and evaluates the 'Protocol' + * object against the 'Value'.

    + */ + inline PolicyCondition& WithTlsExpression(IngressTlsProtocolExpression&& value) { SetTlsExpression(std::move(value)); return *this;} + + private: + + IngressBooleanExpression m_booleanExpression; + bool m_booleanExpressionHasBeenSet = false; + + IngressIpv4Expression m_ipExpression; + bool m_ipExpressionHasBeenSet = false; + + IngressStringExpression m_stringExpression; + bool m_stringExpressionHasBeenSet = false; + + IngressTlsProtocolExpression m_tlsExpression; + bool m_tlsExpressionHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/PolicyStatement.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/PolicyStatement.h new file mode 100644 index 00000000000..005b3abdd0f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/PolicyStatement.h @@ -0,0 +1,139 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The structure containing traffic policy conditions and actions.

    See + * Also:

    AWS + * API Reference

    + */ + class PolicyStatement + { + public: + AWS_MAILMANAGER_API PolicyStatement(); + AWS_MAILMANAGER_API PolicyStatement(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API PolicyStatement& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The action that informs a traffic policy resource to either allow or block + * the email if it matches a condition in the policy statement.

    + */ + inline const AcceptAction& GetAction() const{ return m_action; } + + /** + *

    The action that informs a traffic policy resource to either allow or block + * the email if it matches a condition in the policy statement.

    + */ + inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } + + /** + *

    The action that informs a traffic policy resource to either allow or block + * the email if it matches a condition in the policy statement.

    + */ + inline void SetAction(const AcceptAction& value) { m_actionHasBeenSet = true; m_action = value; } + + /** + *

    The action that informs a traffic policy resource to either allow or block + * the email if it matches a condition in the policy statement.

    + */ + inline void SetAction(AcceptAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } + + /** + *

    The action that informs a traffic policy resource to either allow or block + * the email if it matches a condition in the policy statement.

    + */ + inline PolicyStatement& WithAction(const AcceptAction& value) { SetAction(value); return *this;} + + /** + *

    The action that informs a traffic policy resource to either allow or block + * the email if it matches a condition in the policy statement.

    + */ + inline PolicyStatement& WithAction(AcceptAction&& value) { SetAction(std::move(value)); return *this;} + + + /** + *

    The list of conditions to apply to incoming messages for filtering email + * traffic.

    + */ + inline const Aws::Vector& GetConditions() const{ return m_conditions; } + + /** + *

    The list of conditions to apply to incoming messages for filtering email + * traffic.

    + */ + inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; } + + /** + *

    The list of conditions to apply to incoming messages for filtering email + * traffic.

    + */ + inline void SetConditions(const Aws::Vector& value) { m_conditionsHasBeenSet = true; m_conditions = value; } + + /** + *

    The list of conditions to apply to incoming messages for filtering email + * traffic.

    + */ + inline void SetConditions(Aws::Vector&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); } + + /** + *

    The list of conditions to apply to incoming messages for filtering email + * traffic.

    + */ + inline PolicyStatement& WithConditions(const Aws::Vector& value) { SetConditions(value); return *this;} + + /** + *

    The list of conditions to apply to incoming messages for filtering email + * traffic.

    + */ + inline PolicyStatement& WithConditions(Aws::Vector&& value) { SetConditions(std::move(value)); return *this;} + + /** + *

    The list of conditions to apply to incoming messages for filtering email + * traffic.

    + */ + inline PolicyStatement& AddConditions(const PolicyCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; } + + /** + *

    The list of conditions to apply to incoming messages for filtering email + * traffic.

    + */ + inline PolicyStatement& AddConditions(PolicyCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; } + + private: + + AcceptAction m_action; + bool m_actionHasBeenSet = false; + + Aws::Vector m_conditions; + bool m_conditionsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Relay.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Relay.h new file mode 100644 index 00000000000..c44a5677149 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Relay.h @@ -0,0 +1,168 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The relay resource that can be used as a rule to relay receiving emails to + * the destination relay server.

    See Also:

    AWS + * API Reference

    + */ + class Relay + { + public: + AWS_MAILMANAGER_API Relay(); + AWS_MAILMANAGER_API Relay(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Relay& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The timestamp of when the relay was last modified.

    + */ + inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; } + + /** + *

    The timestamp of when the relay was last modified.

    + */ + inline bool LastModifiedTimestampHasBeenSet() const { return m_lastModifiedTimestampHasBeenSet; } + + /** + *

    The timestamp of when the relay was last modified.

    + */ + inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestampHasBeenSet = true; m_lastModifiedTimestamp = value; } + + /** + *

    The timestamp of when the relay was last modified.

    + */ + inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestampHasBeenSet = true; m_lastModifiedTimestamp = std::move(value); } + + /** + *

    The timestamp of when the relay was last modified.

    + */ + inline Relay& WithLastModifiedTimestamp(const Aws::Utils::DateTime& value) { SetLastModifiedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the relay was last modified.

    + */ + inline Relay& WithLastModifiedTimestamp(Aws::Utils::DateTime&& value) { SetLastModifiedTimestamp(std::move(value)); return *this;} + + + /** + *

    The unique relay identifier.

    + */ + inline const Aws::String& GetRelayId() const{ return m_relayId; } + + /** + *

    The unique relay identifier.

    + */ + inline bool RelayIdHasBeenSet() const { return m_relayIdHasBeenSet; } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(const Aws::String& value) { m_relayIdHasBeenSet = true; m_relayId = value; } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(Aws::String&& value) { m_relayIdHasBeenSet = true; m_relayId = std::move(value); } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(const char* value) { m_relayIdHasBeenSet = true; m_relayId.assign(value); } + + /** + *

    The unique relay identifier.

    + */ + inline Relay& WithRelayId(const Aws::String& value) { SetRelayId(value); return *this;} + + /** + *

    The unique relay identifier.

    + */ + inline Relay& WithRelayId(Aws::String&& value) { SetRelayId(std::move(value)); return *this;} + + /** + *

    The unique relay identifier.

    + */ + inline Relay& WithRelayId(const char* value) { SetRelayId(value); return *this;} + + + /** + *

    The unique relay name.

    + */ + inline const Aws::String& GetRelayName() const{ return m_relayName; } + + /** + *

    The unique relay name.

    + */ + inline bool RelayNameHasBeenSet() const { return m_relayNameHasBeenSet; } + + /** + *

    The unique relay name.

    + */ + inline void SetRelayName(const Aws::String& value) { m_relayNameHasBeenSet = true; m_relayName = value; } + + /** + *

    The unique relay name.

    + */ + inline void SetRelayName(Aws::String&& value) { m_relayNameHasBeenSet = true; m_relayName = std::move(value); } + + /** + *

    The unique relay name.

    + */ + inline void SetRelayName(const char* value) { m_relayNameHasBeenSet = true; m_relayName.assign(value); } + + /** + *

    The unique relay name.

    + */ + inline Relay& WithRelayName(const Aws::String& value) { SetRelayName(value); return *this;} + + /** + *

    The unique relay name.

    + */ + inline Relay& WithRelayName(Aws::String&& value) { SetRelayName(std::move(value)); return *this;} + + /** + *

    The unique relay name.

    + */ + inline Relay& WithRelayName(const char* value) { SetRelayName(value); return *this;} + + private: + + Aws::Utils::DateTime m_lastModifiedTimestamp; + bool m_lastModifiedTimestampHasBeenSet = false; + + Aws::String m_relayId; + bool m_relayIdHasBeenSet = false; + + Aws::String m_relayName; + bool m_relayNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RelayAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RelayAction.h new file mode 100644 index 00000000000..11dc69b4e2e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RelayAction.h @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The action relays the email via SMTP to another specific SMTP + * server.

    See Also:

    AWS + * API Reference

    + */ + class RelayAction + { + public: + AWS_MAILMANAGER_API RelayAction(); + AWS_MAILMANAGER_API RelayAction(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RelayAction& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified relay has been + * deleted.

    + */ + inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified relay has been + * deleted.

    + */ + inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified relay has been + * deleted.

    + */ + inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified relay has been + * deleted.

    + */ + inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified relay has been + * deleted.

    + */ + inline RelayAction& WithActionFailurePolicy(const ActionFailurePolicy& value) { SetActionFailurePolicy(value); return *this;} + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified relay has been + * deleted.

    + */ + inline RelayAction& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;} + + + /** + *

    This action specifies whether to preserve or replace original mail from + * address while relaying received emails to a destination server.

    + */ + inline const MailFrom& GetMailFrom() const{ return m_mailFrom; } + + /** + *

    This action specifies whether to preserve or replace original mail from + * address while relaying received emails to a destination server.

    + */ + inline bool MailFromHasBeenSet() const { return m_mailFromHasBeenSet; } + + /** + *

    This action specifies whether to preserve or replace original mail from + * address while relaying received emails to a destination server.

    + */ + inline void SetMailFrom(const MailFrom& value) { m_mailFromHasBeenSet = true; m_mailFrom = value; } + + /** + *

    This action specifies whether to preserve or replace original mail from + * address while relaying received emails to a destination server.

    + */ + inline void SetMailFrom(MailFrom&& value) { m_mailFromHasBeenSet = true; m_mailFrom = std::move(value); } + + /** + *

    This action specifies whether to preserve or replace original mail from + * address while relaying received emails to a destination server.

    + */ + inline RelayAction& WithMailFrom(const MailFrom& value) { SetMailFrom(value); return *this;} + + /** + *

    This action specifies whether to preserve or replace original mail from + * address while relaying received emails to a destination server.

    + */ + inline RelayAction& WithMailFrom(MailFrom&& value) { SetMailFrom(std::move(value)); return *this;} + + + /** + *

    The identifier of the relay resource to be used when relaying an email.

    + */ + inline const Aws::String& GetRelay() const{ return m_relay; } + + /** + *

    The identifier of the relay resource to be used when relaying an email.

    + */ + inline bool RelayHasBeenSet() const { return m_relayHasBeenSet; } + + /** + *

    The identifier of the relay resource to be used when relaying an email.

    + */ + inline void SetRelay(const Aws::String& value) { m_relayHasBeenSet = true; m_relay = value; } + + /** + *

    The identifier of the relay resource to be used when relaying an email.

    + */ + inline void SetRelay(Aws::String&& value) { m_relayHasBeenSet = true; m_relay = std::move(value); } + + /** + *

    The identifier of the relay resource to be used when relaying an email.

    + */ + inline void SetRelay(const char* value) { m_relayHasBeenSet = true; m_relay.assign(value); } + + /** + *

    The identifier of the relay resource to be used when relaying an email.

    + */ + inline RelayAction& WithRelay(const Aws::String& value) { SetRelay(value); return *this;} + + /** + *

    The identifier of the relay resource to be used when relaying an email.

    + */ + inline RelayAction& WithRelay(Aws::String&& value) { SetRelay(std::move(value)); return *this;} + + /** + *

    The identifier of the relay resource to be used when relaying an email.

    + */ + inline RelayAction& WithRelay(const char* value) { SetRelay(value); return *this;} + + private: + + ActionFailurePolicy m_actionFailurePolicy; + bool m_actionFailurePolicyHasBeenSet = false; + + MailFrom m_mailFrom; + bool m_mailFromHasBeenSet = false; + + Aws::String m_relay; + bool m_relayHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RelayAuthentication.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RelayAuthentication.h new file mode 100644 index 00000000000..0738b30a6bf --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RelayAuthentication.h @@ -0,0 +1,140 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored, or specify an empty NoAuthentication structure + * if the relay destination server does not require SMTP credential + * authentication.

    See Also:

    AWS + * API Reference

    + */ + class RelayAuthentication + { + public: + AWS_MAILMANAGER_API RelayAuthentication(); + AWS_MAILMANAGER_API RelayAuthentication(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RelayAuthentication& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    Keep an empty structure if the relay destination server does not require SMTP + * credential authentication.

    + */ + inline const NoAuthentication& GetNoAuthentication() const{ return m_noAuthentication; } + + /** + *

    Keep an empty structure if the relay destination server does not require SMTP + * credential authentication.

    + */ + inline bool NoAuthenticationHasBeenSet() const { return m_noAuthenticationHasBeenSet; } + + /** + *

    Keep an empty structure if the relay destination server does not require SMTP + * credential authentication.

    + */ + inline void SetNoAuthentication(const NoAuthentication& value) { m_noAuthenticationHasBeenSet = true; m_noAuthentication = value; } + + /** + *

    Keep an empty structure if the relay destination server does not require SMTP + * credential authentication.

    + */ + inline void SetNoAuthentication(NoAuthentication&& value) { m_noAuthenticationHasBeenSet = true; m_noAuthentication = std::move(value); } + + /** + *

    Keep an empty structure if the relay destination server does not require SMTP + * credential authentication.

    + */ + inline RelayAuthentication& WithNoAuthentication(const NoAuthentication& value) { SetNoAuthentication(value); return *this;} + + /** + *

    Keep an empty structure if the relay destination server does not require SMTP + * credential authentication.

    + */ + inline RelayAuthentication& WithNoAuthentication(NoAuthentication&& value) { SetNoAuthentication(std::move(value)); return *this;} + + + /** + *

    The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored.

    + */ + inline const Aws::String& GetSecretArn() const{ return m_secretArn; } + + /** + *

    The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored.

    + */ + inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; } + + /** + *

    The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored.

    + */ + inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; } + + /** + *

    The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored.

    + */ + inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); } + + /** + *

    The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored.

    + */ + inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); } + + /** + *

    The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored.

    + */ + inline RelayAuthentication& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} + + /** + *

    The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored.

    + */ + inline RelayAuthentication& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} + + /** + *

    The ARN of the secret created in secrets manager where the relay server's + * SMTP credentials are stored.

    + */ + inline RelayAuthentication& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} + + private: + + NoAuthentication m_noAuthentication; + bool m_noAuthenticationHasBeenSet = false; + + Aws::String m_secretArn; + bool m_secretArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ReplaceRecipientAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ReplaceRecipientAction.h new file mode 100644 index 00000000000..7b513d40811 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/ReplaceRecipientAction.h @@ -0,0 +1,107 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    This action replaces the email envelope recipients with the given list of + * recipients. If the condition of this action applies only to a subset of + * recipients, only those recipients are replaced with the recipients specified in + * the action. The message contents and headers are unaffected by this action, only + * the envelope recipients are updated.

    See Also:

    AWS + * API Reference

    + */ + class ReplaceRecipientAction + { + public: + AWS_MAILMANAGER_API ReplaceRecipientAction(); + AWS_MAILMANAGER_API ReplaceRecipientAction(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API ReplaceRecipientAction& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline const Aws::Vector& GetReplaceWith() const{ return m_replaceWith; } + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline bool ReplaceWithHasBeenSet() const { return m_replaceWithHasBeenSet; } + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline void SetReplaceWith(const Aws::Vector& value) { m_replaceWithHasBeenSet = true; m_replaceWith = value; } + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline void SetReplaceWith(Aws::Vector&& value) { m_replaceWithHasBeenSet = true; m_replaceWith = std::move(value); } + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline ReplaceRecipientAction& WithReplaceWith(const Aws::Vector& value) { SetReplaceWith(value); return *this;} + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline ReplaceRecipientAction& WithReplaceWith(Aws::Vector&& value) { SetReplaceWith(std::move(value)); return *this;} + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline ReplaceRecipientAction& AddReplaceWith(const Aws::String& value) { m_replaceWithHasBeenSet = true; m_replaceWith.push_back(value); return *this; } + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline ReplaceRecipientAction& AddReplaceWith(Aws::String&& value) { m_replaceWithHasBeenSet = true; m_replaceWith.push_back(std::move(value)); return *this; } + + /** + *

    This action specifies the replacement recipient email addresses to + * insert.

    + */ + inline ReplaceRecipientAction& AddReplaceWith(const char* value) { m_replaceWithHasBeenSet = true; m_replaceWith.push_back(value); return *this; } + + private: + + Aws::Vector m_replaceWith; + bool m_replaceWithHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RetentionPeriod.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RetentionPeriod.h new file mode 100644 index 00000000000..83e141d6c00 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RetentionPeriod.h @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RetentionPeriod + { + NOT_SET, + THREE_MONTHS, + SIX_MONTHS, + NINE_MONTHS, + ONE_YEAR, + EIGHTEEN_MONTHS, + TWO_YEARS, + THIRTY_MONTHS, + THREE_YEARS, + FOUR_YEARS, + FIVE_YEARS, + SIX_YEARS, + SEVEN_YEARS, + EIGHT_YEARS, + NINE_YEARS, + TEN_YEARS, + PERMANENT + }; + +namespace RetentionPeriodMapper +{ +AWS_MAILMANAGER_API RetentionPeriod GetRetentionPeriodForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRetentionPeriod(RetentionPeriod value); +} // namespace RetentionPeriodMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Row.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Row.h new file mode 100644 index 00000000000..61a8397e654 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Row.h @@ -0,0 +1,638 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A result row containing metadata for an archived email message.

    See + * Also:

    AWS API + * Reference

    + */ + class Row + { + public: + AWS_MAILMANAGER_API Row(); + AWS_MAILMANAGER_API Row(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Row& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The unique identifier of the archived message.

    + */ + inline const Aws::String& GetArchivedMessageId() const{ return m_archivedMessageId; } + + /** + *

    The unique identifier of the archived message.

    + */ + inline bool ArchivedMessageIdHasBeenSet() const { return m_archivedMessageIdHasBeenSet; } + + /** + *

    The unique identifier of the archived message.

    + */ + inline void SetArchivedMessageId(const Aws::String& value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId = value; } + + /** + *

    The unique identifier of the archived message.

    + */ + inline void SetArchivedMessageId(Aws::String&& value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId = std::move(value); } + + /** + *

    The unique identifier of the archived message.

    + */ + inline void SetArchivedMessageId(const char* value) { m_archivedMessageIdHasBeenSet = true; m_archivedMessageId.assign(value); } + + /** + *

    The unique identifier of the archived message.

    + */ + inline Row& WithArchivedMessageId(const Aws::String& value) { SetArchivedMessageId(value); return *this;} + + /** + *

    The unique identifier of the archived message.

    + */ + inline Row& WithArchivedMessageId(Aws::String&& value) { SetArchivedMessageId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the archived message.

    + */ + inline Row& WithArchivedMessageId(const char* value) { SetArchivedMessageId(value); return *this;} + + + /** + *

    The email addresses in the CC header.

    + */ + inline const Aws::String& GetCc() const{ return m_cc; } + + /** + *

    The email addresses in the CC header.

    + */ + inline bool CcHasBeenSet() const { return m_ccHasBeenSet; } + + /** + *

    The email addresses in the CC header.

    + */ + inline void SetCc(const Aws::String& value) { m_ccHasBeenSet = true; m_cc = value; } + + /** + *

    The email addresses in the CC header.

    + */ + inline void SetCc(Aws::String&& value) { m_ccHasBeenSet = true; m_cc = std::move(value); } + + /** + *

    The email addresses in the CC header.

    + */ + inline void SetCc(const char* value) { m_ccHasBeenSet = true; m_cc.assign(value); } + + /** + *

    The email addresses in the CC header.

    + */ + inline Row& WithCc(const Aws::String& value) { SetCc(value); return *this;} + + /** + *

    The email addresses in the CC header.

    + */ + inline Row& WithCc(Aws::String&& value) { SetCc(std::move(value)); return *this;} + + /** + *

    The email addresses in the CC header.

    + */ + inline Row& WithCc(const char* value) { SetCc(value); return *this;} + + + /** + *

    The date the email was sent.

    + */ + inline const Aws::String& GetDate() const{ return m_date; } + + /** + *

    The date the email was sent.

    + */ + inline bool DateHasBeenSet() const { return m_dateHasBeenSet; } + + /** + *

    The date the email was sent.

    + */ + inline void SetDate(const Aws::String& value) { m_dateHasBeenSet = true; m_date = value; } + + /** + *

    The date the email was sent.

    + */ + inline void SetDate(Aws::String&& value) { m_dateHasBeenSet = true; m_date = std::move(value); } + + /** + *

    The date the email was sent.

    + */ + inline void SetDate(const char* value) { m_dateHasBeenSet = true; m_date.assign(value); } + + /** + *

    The date the email was sent.

    + */ + inline Row& WithDate(const Aws::String& value) { SetDate(value); return *this;} + + /** + *

    The date the email was sent.

    + */ + inline Row& WithDate(Aws::String&& value) { SetDate(std::move(value)); return *this;} + + /** + *

    The date the email was sent.

    + */ + inline Row& WithDate(const char* value) { SetDate(value); return *this;} + + + /** + *

    The email address of the sender.

    + */ + inline const Aws::String& GetFrom() const{ return m_from; } + + /** + *

    The email address of the sender.

    + */ + inline bool FromHasBeenSet() const { return m_fromHasBeenSet; } + + /** + *

    The email address of the sender.

    + */ + inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; } + + /** + *

    The email address of the sender.

    + */ + inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); } + + /** + *

    The email address of the sender.

    + */ + inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); } + + /** + *

    The email address of the sender.

    + */ + inline Row& WithFrom(const Aws::String& value) { SetFrom(value); return *this;} + + /** + *

    The email address of the sender.

    + */ + inline Row& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;} + + /** + *

    The email address of the sender.

    + */ + inline Row& WithFrom(const char* value) { SetFrom(value); return *this;} + + + /** + *

    A flag indicating if the email has attachments.

    + */ + inline bool GetHasAttachments() const{ return m_hasAttachments; } + + /** + *

    A flag indicating if the email has attachments.

    + */ + inline bool HasAttachmentsHasBeenSet() const { return m_hasAttachmentsHasBeenSet; } + + /** + *

    A flag indicating if the email has attachments.

    + */ + inline void SetHasAttachments(bool value) { m_hasAttachmentsHasBeenSet = true; m_hasAttachments = value; } + + /** + *

    A flag indicating if the email has attachments.

    + */ + inline Row& WithHasAttachments(bool value) { SetHasAttachments(value); return *this;} + + + /** + *

    The email message ID this is a reply to.

    + */ + inline const Aws::String& GetInReplyTo() const{ return m_inReplyTo; } + + /** + *

    The email message ID this is a reply to.

    + */ + inline bool InReplyToHasBeenSet() const { return m_inReplyToHasBeenSet; } + + /** + *

    The email message ID this is a reply to.

    + */ + inline void SetInReplyTo(const Aws::String& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = value; } + + /** + *

    The email message ID this is a reply to.

    + */ + inline void SetInReplyTo(Aws::String&& value) { m_inReplyToHasBeenSet = true; m_inReplyTo = std::move(value); } + + /** + *

    The email message ID this is a reply to.

    + */ + inline void SetInReplyTo(const char* value) { m_inReplyToHasBeenSet = true; m_inReplyTo.assign(value); } + + /** + *

    The email message ID this is a reply to.

    + */ + inline Row& WithInReplyTo(const Aws::String& value) { SetInReplyTo(value); return *this;} + + /** + *

    The email message ID this is a reply to.

    + */ + inline Row& WithInReplyTo(Aws::String&& value) { SetInReplyTo(std::move(value)); return *this;} + + /** + *

    The email message ID this is a reply to.

    + */ + inline Row& WithInReplyTo(const char* value) { SetInReplyTo(value); return *this;} + + + /** + *

    The unique message ID of the email.

    + */ + inline const Aws::String& GetMessageId() const{ return m_messageId; } + + /** + *

    The unique message ID of the email.

    + */ + inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; } + + /** + *

    The unique message ID of the email.

    + */ + inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; } + + /** + *

    The unique message ID of the email.

    + */ + inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); } + + /** + *

    The unique message ID of the email.

    + */ + inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); } + + /** + *

    The unique message ID of the email.

    + */ + inline Row& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} + + /** + *

    The unique message ID of the email.

    + */ + inline Row& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} + + /** + *

    The unique message ID of the email.

    + */ + inline Row& WithMessageId(const char* value) { SetMessageId(value); return *this;} + + + /** + *

    The received headers from the email delivery path.

    + */ + inline const Aws::Vector& GetReceivedHeaders() const{ return m_receivedHeaders; } + + /** + *

    The received headers from the email delivery path.

    + */ + inline bool ReceivedHeadersHasBeenSet() const { return m_receivedHeadersHasBeenSet; } + + /** + *

    The received headers from the email delivery path.

    + */ + inline void SetReceivedHeaders(const Aws::Vector& value) { m_receivedHeadersHasBeenSet = true; m_receivedHeaders = value; } + + /** + *

    The received headers from the email delivery path.

    + */ + inline void SetReceivedHeaders(Aws::Vector&& value) { m_receivedHeadersHasBeenSet = true; m_receivedHeaders = std::move(value); } + + /** + *

    The received headers from the email delivery path.

    + */ + inline Row& WithReceivedHeaders(const Aws::Vector& value) { SetReceivedHeaders(value); return *this;} + + /** + *

    The received headers from the email delivery path.

    + */ + inline Row& WithReceivedHeaders(Aws::Vector&& value) { SetReceivedHeaders(std::move(value)); return *this;} + + /** + *

    The received headers from the email delivery path.

    + */ + inline Row& AddReceivedHeaders(const Aws::String& value) { m_receivedHeadersHasBeenSet = true; m_receivedHeaders.push_back(value); return *this; } + + /** + *

    The received headers from the email delivery path.

    + */ + inline Row& AddReceivedHeaders(Aws::String&& value) { m_receivedHeadersHasBeenSet = true; m_receivedHeaders.push_back(std::move(value)); return *this; } + + /** + *

    The received headers from the email delivery path.

    + */ + inline Row& AddReceivedHeaders(const char* value) { m_receivedHeadersHasBeenSet = true; m_receivedHeaders.push_back(value); return *this; } + + + /** + *

    The timestamp of when the email was received.

    + */ + inline const Aws::Utils::DateTime& GetReceivedTimestamp() const{ return m_receivedTimestamp; } + + /** + *

    The timestamp of when the email was received.

    + */ + inline bool ReceivedTimestampHasBeenSet() const { return m_receivedTimestampHasBeenSet; } + + /** + *

    The timestamp of when the email was received.

    + */ + inline void SetReceivedTimestamp(const Aws::Utils::DateTime& value) { m_receivedTimestampHasBeenSet = true; m_receivedTimestamp = value; } + + /** + *

    The timestamp of when the email was received.

    + */ + inline void SetReceivedTimestamp(Aws::Utils::DateTime&& value) { m_receivedTimestampHasBeenSet = true; m_receivedTimestamp = std::move(value); } + + /** + *

    The timestamp of when the email was received.

    + */ + inline Row& WithReceivedTimestamp(const Aws::Utils::DateTime& value) { SetReceivedTimestamp(value); return *this;} + + /** + *

    The timestamp of when the email was received.

    + */ + inline Row& WithReceivedTimestamp(Aws::Utils::DateTime&& value) { SetReceivedTimestamp(std::move(value)); return *this;} + + + /** + *

    The subject header value of the email.

    + */ + inline const Aws::String& GetSubject() const{ return m_subject; } + + /** + *

    The subject header value of the email.

    + */ + inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; } + + /** + *

    The subject header value of the email.

    + */ + inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; } + + /** + *

    The subject header value of the email.

    + */ + inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); } + + /** + *

    The subject header value of the email.

    + */ + inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); } + + /** + *

    The subject header value of the email.

    + */ + inline Row& WithSubject(const Aws::String& value) { SetSubject(value); return *this;} + + /** + *

    The subject header value of the email.

    + */ + inline Row& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;} + + /** + *

    The subject header value of the email.

    + */ + inline Row& WithSubject(const char* value) { SetSubject(value); return *this;} + + + /** + *

    The email addresses in the To header.

    + */ + inline const Aws::String& GetTo() const{ return m_to; } + + /** + *

    The email addresses in the To header.

    + */ + inline bool ToHasBeenSet() const { return m_toHasBeenSet; } + + /** + *

    The email addresses in the To header.

    + */ + inline void SetTo(const Aws::String& value) { m_toHasBeenSet = true; m_to = value; } + + /** + *

    The email addresses in the To header.

    + */ + inline void SetTo(Aws::String&& value) { m_toHasBeenSet = true; m_to = std::move(value); } + + /** + *

    The email addresses in the To header.

    + */ + inline void SetTo(const char* value) { m_toHasBeenSet = true; m_to.assign(value); } + + /** + *

    The email addresses in the To header.

    + */ + inline Row& WithTo(const Aws::String& value) { SetTo(value); return *this;} + + /** + *

    The email addresses in the To header.

    + */ + inline Row& WithTo(Aws::String&& value) { SetTo(std::move(value)); return *this;} + + /** + *

    The email addresses in the To header.

    + */ + inline Row& WithTo(const char* value) { SetTo(value); return *this;} + + + /** + *

    The user agent that sent the email.

    + */ + inline const Aws::String& GetXMailer() const{ return m_xMailer; } + + /** + *

    The user agent that sent the email.

    + */ + inline bool XMailerHasBeenSet() const { return m_xMailerHasBeenSet; } + + /** + *

    The user agent that sent the email.

    + */ + inline void SetXMailer(const Aws::String& value) { m_xMailerHasBeenSet = true; m_xMailer = value; } + + /** + *

    The user agent that sent the email.

    + */ + inline void SetXMailer(Aws::String&& value) { m_xMailerHasBeenSet = true; m_xMailer = std::move(value); } + + /** + *

    The user agent that sent the email.

    + */ + inline void SetXMailer(const char* value) { m_xMailerHasBeenSet = true; m_xMailer.assign(value); } + + /** + *

    The user agent that sent the email.

    + */ + inline Row& WithXMailer(const Aws::String& value) { SetXMailer(value); return *this;} + + /** + *

    The user agent that sent the email.

    + */ + inline Row& WithXMailer(Aws::String&& value) { SetXMailer(std::move(value)); return *this;} + + /** + *

    The user agent that sent the email.

    + */ + inline Row& WithXMailer(const char* value) { SetXMailer(value); return *this;} + + + /** + *

    The original user agent that sent the email.

    + */ + inline const Aws::String& GetXOriginalMailer() const{ return m_xOriginalMailer; } + + /** + *

    The original user agent that sent the email.

    + */ + inline bool XOriginalMailerHasBeenSet() const { return m_xOriginalMailerHasBeenSet; } + + /** + *

    The original user agent that sent the email.

    + */ + inline void SetXOriginalMailer(const Aws::String& value) { m_xOriginalMailerHasBeenSet = true; m_xOriginalMailer = value; } + + /** + *

    The original user agent that sent the email.

    + */ + inline void SetXOriginalMailer(Aws::String&& value) { m_xOriginalMailerHasBeenSet = true; m_xOriginalMailer = std::move(value); } + + /** + *

    The original user agent that sent the email.

    + */ + inline void SetXOriginalMailer(const char* value) { m_xOriginalMailerHasBeenSet = true; m_xOriginalMailer.assign(value); } + + /** + *

    The original user agent that sent the email.

    + */ + inline Row& WithXOriginalMailer(const Aws::String& value) { SetXOriginalMailer(value); return *this;} + + /** + *

    The original user agent that sent the email.

    + */ + inline Row& WithXOriginalMailer(Aws::String&& value) { SetXOriginalMailer(std::move(value)); return *this;} + + /** + *

    The original user agent that sent the email.

    + */ + inline Row& WithXOriginalMailer(const char* value) { SetXOriginalMailer(value); return *this;} + + + /** + *

    The priority level of the email.

    + */ + inline const Aws::String& GetXPriority() const{ return m_xPriority; } + + /** + *

    The priority level of the email.

    + */ + inline bool XPriorityHasBeenSet() const { return m_xPriorityHasBeenSet; } + + /** + *

    The priority level of the email.

    + */ + inline void SetXPriority(const Aws::String& value) { m_xPriorityHasBeenSet = true; m_xPriority = value; } + + /** + *

    The priority level of the email.

    + */ + inline void SetXPriority(Aws::String&& value) { m_xPriorityHasBeenSet = true; m_xPriority = std::move(value); } + + /** + *

    The priority level of the email.

    + */ + inline void SetXPriority(const char* value) { m_xPriorityHasBeenSet = true; m_xPriority.assign(value); } + + /** + *

    The priority level of the email.

    + */ + inline Row& WithXPriority(const Aws::String& value) { SetXPriority(value); return *this;} + + /** + *

    The priority level of the email.

    + */ + inline Row& WithXPriority(Aws::String&& value) { SetXPriority(std::move(value)); return *this;} + + /** + *

    The priority level of the email.

    + */ + inline Row& WithXPriority(const char* value) { SetXPriority(value); return *this;} + + private: + + Aws::String m_archivedMessageId; + bool m_archivedMessageIdHasBeenSet = false; + + Aws::String m_cc; + bool m_ccHasBeenSet = false; + + Aws::String m_date; + bool m_dateHasBeenSet = false; + + Aws::String m_from; + bool m_fromHasBeenSet = false; + + bool m_hasAttachments; + bool m_hasAttachmentsHasBeenSet = false; + + Aws::String m_inReplyTo; + bool m_inReplyToHasBeenSet = false; + + Aws::String m_messageId; + bool m_messageIdHasBeenSet = false; + + Aws::Vector m_receivedHeaders; + bool m_receivedHeadersHasBeenSet = false; + + Aws::Utils::DateTime m_receivedTimestamp; + bool m_receivedTimestampHasBeenSet = false; + + Aws::String m_subject; + bool m_subjectHasBeenSet = false; + + Aws::String m_to; + bool m_toHasBeenSet = false; + + Aws::String m_xMailer; + bool m_xMailerHasBeenSet = false; + + Aws::String m_xOriginalMailer; + bool m_xOriginalMailerHasBeenSet = false; + + Aws::String m_xPriority; + bool m_xPriorityHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Rule.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Rule.h new file mode 100644 index 00000000000..b68a3030fd5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Rule.h @@ -0,0 +1,269 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A rule contains conditions, "unless conditions" and actions. For each + * envelope recipient of an email, if all conditions match and none of the "unless + * conditions" match, then all of the actions are executed sequentially. If no + * conditions are provided, the rule always applies and the actions are implicitly + * executed. If only "unless conditions" are provided, the rule applies if the + * email does not match the evaluation of the "unless conditions".

    See + * Also:

    AWS + * API Reference

    + */ + class Rule + { + public: + AWS_MAILMANAGER_API Rule(); + AWS_MAILMANAGER_API Rule(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Rule& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match.

    + */ + inline const Aws::Vector& GetActions() const{ return m_actions; } + + /** + *

    The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match.

    + */ + inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } + + /** + *

    The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match.

    + */ + inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } + + /** + *

    The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match.

    + */ + inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } + + /** + *

    The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match.

    + */ + inline Rule& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} + + /** + *

    The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match.

    + */ + inline Rule& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} + + /** + *

    The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match.

    + */ + inline Rule& AddActions(const RuleAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } + + /** + *

    The list of actions to execute when the conditions match the incoming email, + * and none of the "unless conditions" match.

    + */ + inline Rule& AddActions(RuleAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } + + + /** + *

    The conditions of this rule. All conditions must match the email for the + * actions to be executed. An empty list of conditions means that all emails match, + * but are still subject to any "unless conditions"

    + */ + inline const Aws::Vector& GetConditions() const{ return m_conditions; } + + /** + *

    The conditions of this rule. All conditions must match the email for the + * actions to be executed. An empty list of conditions means that all emails match, + * but are still subject to any "unless conditions"

    + */ + inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; } + + /** + *

    The conditions of this rule. All conditions must match the email for the + * actions to be executed. An empty list of conditions means that all emails match, + * but are still subject to any "unless conditions"

    + */ + inline void SetConditions(const Aws::Vector& value) { m_conditionsHasBeenSet = true; m_conditions = value; } + + /** + *

    The conditions of this rule. All conditions must match the email for the + * actions to be executed. An empty list of conditions means that all emails match, + * but are still subject to any "unless conditions"

    + */ + inline void SetConditions(Aws::Vector&& value) { m_conditionsHasBeenSet = true; m_conditions = std::move(value); } + + /** + *

    The conditions of this rule. All conditions must match the email for the + * actions to be executed. An empty list of conditions means that all emails match, + * but are still subject to any "unless conditions"

    + */ + inline Rule& WithConditions(const Aws::Vector& value) { SetConditions(value); return *this;} + + /** + *

    The conditions of this rule. All conditions must match the email for the + * actions to be executed. An empty list of conditions means that all emails match, + * but are still subject to any "unless conditions"

    + */ + inline Rule& WithConditions(Aws::Vector&& value) { SetConditions(std::move(value)); return *this;} + + /** + *

    The conditions of this rule. All conditions must match the email for the + * actions to be executed. An empty list of conditions means that all emails match, + * but are still subject to any "unless conditions"

    + */ + inline Rule& AddConditions(const RuleCondition& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(value); return *this; } + + /** + *

    The conditions of this rule. All conditions must match the email for the + * actions to be executed. An empty list of conditions means that all emails match, + * but are still subject to any "unless conditions"

    + */ + inline Rule& AddConditions(RuleCondition&& value) { m_conditionsHasBeenSet = true; m_conditions.push_back(std::move(value)); return *this; } + + + /** + *

    The user-friendly name of the rule.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *

    The user-friendly name of the rule.

    + */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *

    The user-friendly name of the rule.

    + */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *

    The user-friendly name of the rule.

    + */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *

    The user-friendly name of the rule.

    + */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *

    The user-friendly name of the rule.

    + */ + inline Rule& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *

    The user-friendly name of the rule.

    + */ + inline Rule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *

    The user-friendly name of the rule.

    + */ + inline Rule& WithName(const char* value) { SetName(value); return *this;} + + + /** + *

    The "unless conditions" of this rule. None of the conditions can match the + * email for the actions to be executed. If any of these conditions do match the + * email, then the actions are not executed.

    + */ + inline const Aws::Vector& GetUnless() const{ return m_unless; } + + /** + *

    The "unless conditions" of this rule. None of the conditions can match the + * email for the actions to be executed. If any of these conditions do match the + * email, then the actions are not executed.

    + */ + inline bool UnlessHasBeenSet() const { return m_unlessHasBeenSet; } + + /** + *

    The "unless conditions" of this rule. None of the conditions can match the + * email for the actions to be executed. If any of these conditions do match the + * email, then the actions are not executed.

    + */ + inline void SetUnless(const Aws::Vector& value) { m_unlessHasBeenSet = true; m_unless = value; } + + /** + *

    The "unless conditions" of this rule. None of the conditions can match the + * email for the actions to be executed. If any of these conditions do match the + * email, then the actions are not executed.

    + */ + inline void SetUnless(Aws::Vector&& value) { m_unlessHasBeenSet = true; m_unless = std::move(value); } + + /** + *

    The "unless conditions" of this rule. None of the conditions can match the + * email for the actions to be executed. If any of these conditions do match the + * email, then the actions are not executed.

    + */ + inline Rule& WithUnless(const Aws::Vector& value) { SetUnless(value); return *this;} + + /** + *

    The "unless conditions" of this rule. None of the conditions can match the + * email for the actions to be executed. If any of these conditions do match the + * email, then the actions are not executed.

    + */ + inline Rule& WithUnless(Aws::Vector&& value) { SetUnless(std::move(value)); return *this;} + + /** + *

    The "unless conditions" of this rule. None of the conditions can match the + * email for the actions to be executed. If any of these conditions do match the + * email, then the actions are not executed.

    + */ + inline Rule& AddUnless(const RuleCondition& value) { m_unlessHasBeenSet = true; m_unless.push_back(value); return *this; } + + /** + *

    The "unless conditions" of this rule. None of the conditions can match the + * email for the actions to be executed. If any of these conditions do match the + * email, then the actions are not executed.

    + */ + inline Rule& AddUnless(RuleCondition&& value) { m_unlessHasBeenSet = true; m_unless.push_back(std::move(value)); return *this; } + + private: + + Aws::Vector m_actions; + bool m_actionsHasBeenSet = false; + + Aws::Vector m_conditions; + bool m_conditionsHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::Vector m_unless; + bool m_unlessHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleAction.h new file mode 100644 index 00000000000..ca0537d0a01 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleAction.h @@ -0,0 +1,342 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The action for a rule to take. Only one of the contained actions can be + * set.

    See Also:

    AWS + * API Reference

    + */ + class RuleAction + { + public: + AWS_MAILMANAGER_API RuleAction(); + AWS_MAILMANAGER_API RuleAction(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleAction& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    This action adds a header. This can be used to add arbitrary email + * headers.

    + */ + inline const AddHeaderAction& GetAddHeader() const{ return m_addHeader; } + + /** + *

    This action adds a header. This can be used to add arbitrary email + * headers.

    + */ + inline bool AddHeaderHasBeenSet() const { return m_addHeaderHasBeenSet; } + + /** + *

    This action adds a header. This can be used to add arbitrary email + * headers.

    + */ + inline void SetAddHeader(const AddHeaderAction& value) { m_addHeaderHasBeenSet = true; m_addHeader = value; } + + /** + *

    This action adds a header. This can be used to add arbitrary email + * headers.

    + */ + inline void SetAddHeader(AddHeaderAction&& value) { m_addHeaderHasBeenSet = true; m_addHeader = std::move(value); } + + /** + *

    This action adds a header. This can be used to add arbitrary email + * headers.

    + */ + inline RuleAction& WithAddHeader(const AddHeaderAction& value) { SetAddHeader(value); return *this;} + + /** + *

    This action adds a header. This can be used to add arbitrary email + * headers.

    + */ + inline RuleAction& WithAddHeader(AddHeaderAction&& value) { SetAddHeader(std::move(value)); return *this;} + + + /** + *

    This action archives the email. This can be used to deliver an email to an + * archive.

    + */ + inline const ArchiveAction& GetArchive() const{ return m_archive; } + + /** + *

    This action archives the email. This can be used to deliver an email to an + * archive.

    + */ + inline bool ArchiveHasBeenSet() const { return m_archiveHasBeenSet; } + + /** + *

    This action archives the email. This can be used to deliver an email to an + * archive.

    + */ + inline void SetArchive(const ArchiveAction& value) { m_archiveHasBeenSet = true; m_archive = value; } + + /** + *

    This action archives the email. This can be used to deliver an email to an + * archive.

    + */ + inline void SetArchive(ArchiveAction&& value) { m_archiveHasBeenSet = true; m_archive = std::move(value); } + + /** + *

    This action archives the email. This can be used to deliver an email to an + * archive.

    + */ + inline RuleAction& WithArchive(const ArchiveAction& value) { SetArchive(value); return *this;} + + /** + *

    This action archives the email. This can be used to deliver an email to an + * archive.

    + */ + inline RuleAction& WithArchive(ArchiveAction&& value) { SetArchive(std::move(value)); return *this;} + + + /** + *

    This action delivers an email to a WorkMail mailbox.

    + */ + inline const DeliverToMailboxAction& GetDeliverToMailbox() const{ return m_deliverToMailbox; } + + /** + *

    This action delivers an email to a WorkMail mailbox.

    + */ + inline bool DeliverToMailboxHasBeenSet() const { return m_deliverToMailboxHasBeenSet; } + + /** + *

    This action delivers an email to a WorkMail mailbox.

    + */ + inline void SetDeliverToMailbox(const DeliverToMailboxAction& value) { m_deliverToMailboxHasBeenSet = true; m_deliverToMailbox = value; } + + /** + *

    This action delivers an email to a WorkMail mailbox.

    + */ + inline void SetDeliverToMailbox(DeliverToMailboxAction&& value) { m_deliverToMailboxHasBeenSet = true; m_deliverToMailbox = std::move(value); } + + /** + *

    This action delivers an email to a WorkMail mailbox.

    + */ + inline RuleAction& WithDeliverToMailbox(const DeliverToMailboxAction& value) { SetDeliverToMailbox(value); return *this;} + + /** + *

    This action delivers an email to a WorkMail mailbox.

    + */ + inline RuleAction& WithDeliverToMailbox(DeliverToMailboxAction&& value) { SetDeliverToMailbox(std::move(value)); return *this;} + + + /** + *

    This action terminates the evaluation of rules in the rule set.

    + */ + inline const DropAction& GetDrop() const{ return m_drop; } + + /** + *

    This action terminates the evaluation of rules in the rule set.

    + */ + inline bool DropHasBeenSet() const { return m_dropHasBeenSet; } + + /** + *

    This action terminates the evaluation of rules in the rule set.

    + */ + inline void SetDrop(const DropAction& value) { m_dropHasBeenSet = true; m_drop = value; } + + /** + *

    This action terminates the evaluation of rules in the rule set.

    + */ + inline void SetDrop(DropAction&& value) { m_dropHasBeenSet = true; m_drop = std::move(value); } + + /** + *

    This action terminates the evaluation of rules in the rule set.

    + */ + inline RuleAction& WithDrop(const DropAction& value) { SetDrop(value); return *this;} + + /** + *

    This action terminates the evaluation of rules in the rule set.

    + */ + inline RuleAction& WithDrop(DropAction&& value) { SetDrop(std::move(value)); return *this;} + + + /** + *

    This action relays the email to another SMTP server.

    + */ + inline const RelayAction& GetRelay() const{ return m_relay; } + + /** + *

    This action relays the email to another SMTP server.

    + */ + inline bool RelayHasBeenSet() const { return m_relayHasBeenSet; } + + /** + *

    This action relays the email to another SMTP server.

    + */ + inline void SetRelay(const RelayAction& value) { m_relayHasBeenSet = true; m_relay = value; } + + /** + *

    This action relays the email to another SMTP server.

    + */ + inline void SetRelay(RelayAction&& value) { m_relayHasBeenSet = true; m_relay = std::move(value); } + + /** + *

    This action relays the email to another SMTP server.

    + */ + inline RuleAction& WithRelay(const RelayAction& value) { SetRelay(value); return *this;} + + /** + *

    This action relays the email to another SMTP server.

    + */ + inline RuleAction& WithRelay(RelayAction&& value) { SetRelay(std::move(value)); return *this;} + + + /** + *

    The action replaces certain or all recipients with a different set of + * recipients.

    + */ + inline const ReplaceRecipientAction& GetReplaceRecipient() const{ return m_replaceRecipient; } + + /** + *

    The action replaces certain or all recipients with a different set of + * recipients.

    + */ + inline bool ReplaceRecipientHasBeenSet() const { return m_replaceRecipientHasBeenSet; } + + /** + *

    The action replaces certain or all recipients with a different set of + * recipients.

    + */ + inline void SetReplaceRecipient(const ReplaceRecipientAction& value) { m_replaceRecipientHasBeenSet = true; m_replaceRecipient = value; } + + /** + *

    The action replaces certain or all recipients with a different set of + * recipients.

    + */ + inline void SetReplaceRecipient(ReplaceRecipientAction&& value) { m_replaceRecipientHasBeenSet = true; m_replaceRecipient = std::move(value); } + + /** + *

    The action replaces certain or all recipients with a different set of + * recipients.

    + */ + inline RuleAction& WithReplaceRecipient(const ReplaceRecipientAction& value) { SetReplaceRecipient(value); return *this;} + + /** + *

    The action replaces certain or all recipients with a different set of + * recipients.

    + */ + inline RuleAction& WithReplaceRecipient(ReplaceRecipientAction&& value) { SetReplaceRecipient(std::move(value)); return *this;} + + + /** + *

    This action sends the email to the internet.

    + */ + inline const SendAction& GetSend() const{ return m_send; } + + /** + *

    This action sends the email to the internet.

    + */ + inline bool SendHasBeenSet() const { return m_sendHasBeenSet; } + + /** + *

    This action sends the email to the internet.

    + */ + inline void SetSend(const SendAction& value) { m_sendHasBeenSet = true; m_send = value; } + + /** + *

    This action sends the email to the internet.

    + */ + inline void SetSend(SendAction&& value) { m_sendHasBeenSet = true; m_send = std::move(value); } + + /** + *

    This action sends the email to the internet.

    + */ + inline RuleAction& WithSend(const SendAction& value) { SetSend(value); return *this;} + + /** + *

    This action sends the email to the internet.

    + */ + inline RuleAction& WithSend(SendAction&& value) { SetSend(std::move(value)); return *this;} + + + /** + *

    This action writes the MIME content of the email to an S3 bucket.

    + */ + inline const S3Action& GetWriteToS3() const{ return m_writeToS3; } + + /** + *

    This action writes the MIME content of the email to an S3 bucket.

    + */ + inline bool WriteToS3HasBeenSet() const { return m_writeToS3HasBeenSet; } + + /** + *

    This action writes the MIME content of the email to an S3 bucket.

    + */ + inline void SetWriteToS3(const S3Action& value) { m_writeToS3HasBeenSet = true; m_writeToS3 = value; } + + /** + *

    This action writes the MIME content of the email to an S3 bucket.

    + */ + inline void SetWriteToS3(S3Action&& value) { m_writeToS3HasBeenSet = true; m_writeToS3 = std::move(value); } + + /** + *

    This action writes the MIME content of the email to an S3 bucket.

    + */ + inline RuleAction& WithWriteToS3(const S3Action& value) { SetWriteToS3(value); return *this;} + + /** + *

    This action writes the MIME content of the email to an S3 bucket.

    + */ + inline RuleAction& WithWriteToS3(S3Action&& value) { SetWriteToS3(std::move(value)); return *this;} + + private: + + AddHeaderAction m_addHeader; + bool m_addHeaderHasBeenSet = false; + + ArchiveAction m_archive; + bool m_archiveHasBeenSet = false; + + DeliverToMailboxAction m_deliverToMailbox; + bool m_deliverToMailboxHasBeenSet = false; + + DropAction m_drop; + bool m_dropHasBeenSet = false; + + RelayAction m_relay; + bool m_relayHasBeenSet = false; + + ReplaceRecipientAction m_replaceRecipient; + bool m_replaceRecipientHasBeenSet = false; + + SendAction m_send; + bool m_sendHasBeenSet = false; + + S3Action m_writeToS3; + bool m_writeToS3HasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanEmailAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanEmailAttribute.h new file mode 100644 index 00000000000..c84f5bc06b3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanEmailAttribute.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleBooleanEmailAttribute + { + NOT_SET, + READ_RECEIPT_REQUESTED, + TLS, + TLS_WRAPPED + }; + +namespace RuleBooleanEmailAttributeMapper +{ +AWS_MAILMANAGER_API RuleBooleanEmailAttribute GetRuleBooleanEmailAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleBooleanEmailAttribute(RuleBooleanEmailAttribute value); +} // namespace RuleBooleanEmailAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanExpression.h new file mode 100644 index 00000000000..198380e4385 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanExpression.h @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A boolean expression to be used in a rule condition.

    See Also:

    + * AWS + * API Reference

    + */ + class RuleBooleanExpression + { + public: + AWS_MAILMANAGER_API RuleBooleanExpression(); + AWS_MAILMANAGER_API RuleBooleanExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleBooleanExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline const RuleBooleanToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline void SetEvaluate(const RuleBooleanToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline void SetEvaluate(RuleBooleanToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline RuleBooleanExpression& WithEvaluate(const RuleBooleanToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The operand on which to perform a boolean condition operation.

    + */ + inline RuleBooleanExpression& WithEvaluate(RuleBooleanToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline const RuleBooleanOperator& GetOperator() const{ return m_operator; } + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline void SetOperator(const RuleBooleanOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline void SetOperator(RuleBooleanOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline RuleBooleanExpression& WithOperator(const RuleBooleanOperator& value) { SetOperator(value); return *this;} + + /** + *

    The matching operator for a boolean condition expression.

    + */ + inline RuleBooleanExpression& WithOperator(RuleBooleanOperator&& value) { SetOperator(std::move(value)); return *this;} + + private: + + RuleBooleanToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + RuleBooleanOperator m_operator; + bool m_operatorHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanOperator.h new file mode 100644 index 00000000000..fc483179f54 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanOperator.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleBooleanOperator + { + NOT_SET, + IS_TRUE, + IS_FALSE + }; + +namespace RuleBooleanOperatorMapper +{ +AWS_MAILMANAGER_API RuleBooleanOperator GetRuleBooleanOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleBooleanOperator(RuleBooleanOperator value); +} // namespace RuleBooleanOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanToEvaluate.h new file mode 100644 index 00000000000..ff0af12b8ab --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleBooleanToEvaluate.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The union type representing the allowed types of operands for a boolean + * condition.

    See Also:

    AWS + * API Reference

    + */ + class RuleBooleanToEvaluate + { + public: + AWS_MAILMANAGER_API RuleBooleanToEvaluate(); + AWS_MAILMANAGER_API RuleBooleanToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleBooleanToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The boolean type representing the allowed attribute types for an email.

    + */ + inline const RuleBooleanEmailAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The boolean type representing the allowed attribute types for an email.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The boolean type representing the allowed attribute types for an email.

    + */ + inline void SetAttribute(const RuleBooleanEmailAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The boolean type representing the allowed attribute types for an email.

    + */ + inline void SetAttribute(RuleBooleanEmailAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The boolean type representing the allowed attribute types for an email.

    + */ + inline RuleBooleanToEvaluate& WithAttribute(const RuleBooleanEmailAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The boolean type representing the allowed attribute types for an email.

    + */ + inline RuleBooleanToEvaluate& WithAttribute(RuleBooleanEmailAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + RuleBooleanEmailAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleCondition.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleCondition.h new file mode 100644 index 00000000000..28147be90e6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleCondition.h @@ -0,0 +1,254 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The conditional expression used to evaluate an email for determining if a + * rule action should be taken.

    See Also:

    AWS + * API Reference

    + */ + class RuleCondition + { + public: + AWS_MAILMANAGER_API RuleCondition(); + AWS_MAILMANAGER_API RuleCondition(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleCondition& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The condition applies to a boolean expression passed in this field.

    + */ + inline const RuleBooleanExpression& GetBooleanExpression() const{ return m_booleanExpression; } + + /** + *

    The condition applies to a boolean expression passed in this field.

    + */ + inline bool BooleanExpressionHasBeenSet() const { return m_booleanExpressionHasBeenSet; } + + /** + *

    The condition applies to a boolean expression passed in this field.

    + */ + inline void SetBooleanExpression(const RuleBooleanExpression& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = value; } + + /** + *

    The condition applies to a boolean expression passed in this field.

    + */ + inline void SetBooleanExpression(RuleBooleanExpression&& value) { m_booleanExpressionHasBeenSet = true; m_booleanExpression = std::move(value); } + + /** + *

    The condition applies to a boolean expression passed in this field.

    + */ + inline RuleCondition& WithBooleanExpression(const RuleBooleanExpression& value) { SetBooleanExpression(value); return *this;} + + /** + *

    The condition applies to a boolean expression passed in this field.

    + */ + inline RuleCondition& WithBooleanExpression(RuleBooleanExpression&& value) { SetBooleanExpression(std::move(value)); return *this;} + + + /** + *

    The condition applies to a DMARC policy expression passed in this field.

    + */ + inline const RuleDmarcExpression& GetDmarcExpression() const{ return m_dmarcExpression; } + + /** + *

    The condition applies to a DMARC policy expression passed in this field.

    + */ + inline bool DmarcExpressionHasBeenSet() const { return m_dmarcExpressionHasBeenSet; } + + /** + *

    The condition applies to a DMARC policy expression passed in this field.

    + */ + inline void SetDmarcExpression(const RuleDmarcExpression& value) { m_dmarcExpressionHasBeenSet = true; m_dmarcExpression = value; } + + /** + *

    The condition applies to a DMARC policy expression passed in this field.

    + */ + inline void SetDmarcExpression(RuleDmarcExpression&& value) { m_dmarcExpressionHasBeenSet = true; m_dmarcExpression = std::move(value); } + + /** + *

    The condition applies to a DMARC policy expression passed in this field.

    + */ + inline RuleCondition& WithDmarcExpression(const RuleDmarcExpression& value) { SetDmarcExpression(value); return *this;} + + /** + *

    The condition applies to a DMARC policy expression passed in this field.

    + */ + inline RuleCondition& WithDmarcExpression(RuleDmarcExpression&& value) { SetDmarcExpression(std::move(value)); return *this;} + + + /** + *

    The condition applies to an IP address expression passed in this field.

    + */ + inline const RuleIpExpression& GetIpExpression() const{ return m_ipExpression; } + + /** + *

    The condition applies to an IP address expression passed in this field.

    + */ + inline bool IpExpressionHasBeenSet() const { return m_ipExpressionHasBeenSet; } + + /** + *

    The condition applies to an IP address expression passed in this field.

    + */ + inline void SetIpExpression(const RuleIpExpression& value) { m_ipExpressionHasBeenSet = true; m_ipExpression = value; } + + /** + *

    The condition applies to an IP address expression passed in this field.

    + */ + inline void SetIpExpression(RuleIpExpression&& value) { m_ipExpressionHasBeenSet = true; m_ipExpression = std::move(value); } + + /** + *

    The condition applies to an IP address expression passed in this field.

    + */ + inline RuleCondition& WithIpExpression(const RuleIpExpression& value) { SetIpExpression(value); return *this;} + + /** + *

    The condition applies to an IP address expression passed in this field.

    + */ + inline RuleCondition& WithIpExpression(RuleIpExpression&& value) { SetIpExpression(std::move(value)); return *this;} + + + /** + *

    The condition applies to a number expression passed in this field.

    + */ + inline const RuleNumberExpression& GetNumberExpression() const{ return m_numberExpression; } + + /** + *

    The condition applies to a number expression passed in this field.

    + */ + inline bool NumberExpressionHasBeenSet() const { return m_numberExpressionHasBeenSet; } + + /** + *

    The condition applies to a number expression passed in this field.

    + */ + inline void SetNumberExpression(const RuleNumberExpression& value) { m_numberExpressionHasBeenSet = true; m_numberExpression = value; } + + /** + *

    The condition applies to a number expression passed in this field.

    + */ + inline void SetNumberExpression(RuleNumberExpression&& value) { m_numberExpressionHasBeenSet = true; m_numberExpression = std::move(value); } + + /** + *

    The condition applies to a number expression passed in this field.

    + */ + inline RuleCondition& WithNumberExpression(const RuleNumberExpression& value) { SetNumberExpression(value); return *this;} + + /** + *

    The condition applies to a number expression passed in this field.

    + */ + inline RuleCondition& WithNumberExpression(RuleNumberExpression&& value) { SetNumberExpression(std::move(value)); return *this;} + + + /** + *

    The condition applies to a string expression passed in this field.

    + */ + inline const RuleStringExpression& GetStringExpression() const{ return m_stringExpression; } + + /** + *

    The condition applies to a string expression passed in this field.

    + */ + inline bool StringExpressionHasBeenSet() const { return m_stringExpressionHasBeenSet; } + + /** + *

    The condition applies to a string expression passed in this field.

    + */ + inline void SetStringExpression(const RuleStringExpression& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = value; } + + /** + *

    The condition applies to a string expression passed in this field.

    + */ + inline void SetStringExpression(RuleStringExpression&& value) { m_stringExpressionHasBeenSet = true; m_stringExpression = std::move(value); } + + /** + *

    The condition applies to a string expression passed in this field.

    + */ + inline RuleCondition& WithStringExpression(const RuleStringExpression& value) { SetStringExpression(value); return *this;} + + /** + *

    The condition applies to a string expression passed in this field.

    + */ + inline RuleCondition& WithStringExpression(RuleStringExpression&& value) { SetStringExpression(std::move(value)); return *this;} + + + /** + *

    The condition applies to a verdict expression passed in this field.

    + */ + inline const RuleVerdictExpression& GetVerdictExpression() const{ return m_verdictExpression; } + + /** + *

    The condition applies to a verdict expression passed in this field.

    + */ + inline bool VerdictExpressionHasBeenSet() const { return m_verdictExpressionHasBeenSet; } + + /** + *

    The condition applies to a verdict expression passed in this field.

    + */ + inline void SetVerdictExpression(const RuleVerdictExpression& value) { m_verdictExpressionHasBeenSet = true; m_verdictExpression = value; } + + /** + *

    The condition applies to a verdict expression passed in this field.

    + */ + inline void SetVerdictExpression(RuleVerdictExpression&& value) { m_verdictExpressionHasBeenSet = true; m_verdictExpression = std::move(value); } + + /** + *

    The condition applies to a verdict expression passed in this field.

    + */ + inline RuleCondition& WithVerdictExpression(const RuleVerdictExpression& value) { SetVerdictExpression(value); return *this;} + + /** + *

    The condition applies to a verdict expression passed in this field.

    + */ + inline RuleCondition& WithVerdictExpression(RuleVerdictExpression&& value) { SetVerdictExpression(std::move(value)); return *this;} + + private: + + RuleBooleanExpression m_booleanExpression; + bool m_booleanExpressionHasBeenSet = false; + + RuleDmarcExpression m_dmarcExpression; + bool m_dmarcExpressionHasBeenSet = false; + + RuleIpExpression m_ipExpression; + bool m_ipExpressionHasBeenSet = false; + + RuleNumberExpression m_numberExpression; + bool m_numberExpressionHasBeenSet = false; + + RuleStringExpression m_stringExpression; + bool m_stringExpressionHasBeenSet = false; + + RuleVerdictExpression m_verdictExpression; + bool m_verdictExpressionHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcExpression.h new file mode 100644 index 00000000000..21967c1e8fd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcExpression.h @@ -0,0 +1,165 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A DMARC policy expression. The condition matches if the given DMARC policy + * matches that of the incoming email.

    See Also:

    AWS + * API Reference

    + */ + class RuleDmarcExpression + { + public: + AWS_MAILMANAGER_API RuleDmarcExpression(); + AWS_MAILMANAGER_API RuleDmarcExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleDmarcExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The operator to apply to the DMARC policy of the incoming email.

    + */ + inline const RuleDmarcOperator& GetOperator() const{ return m_operator; } + + /** + *

    The operator to apply to the DMARC policy of the incoming email.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The operator to apply to the DMARC policy of the incoming email.

    + */ + inline void SetOperator(const RuleDmarcOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The operator to apply to the DMARC policy of the incoming email.

    + */ + inline void SetOperator(RuleDmarcOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The operator to apply to the DMARC policy of the incoming email.

    + */ + inline RuleDmarcExpression& WithOperator(const RuleDmarcOperator& value) { SetOperator(value); return *this;} + + /** + *

    The operator to apply to the DMARC policy of the incoming email.

    + */ + inline RuleDmarcExpression& WithOperator(RuleDmarcOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The values to use for the given DMARC policy operator. For the operator + * EQUALS, if multiple values are given, they are evaluated as an OR. That is, if + * any of the given values match, the condition is deemed to match. For the + * operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. + * That is, only if the email's DMARC policy is not equal to any of the given + * values, then the condition is deemed to match.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + + /** + *

    The values to use for the given DMARC policy operator. For the operator + * EQUALS, if multiple values are given, they are evaluated as an OR. That is, if + * any of the given values match, the condition is deemed to match. For the + * operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. + * That is, only if the email's DMARC policy is not equal to any of the given + * values, then the condition is deemed to match.

    + */ + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + + /** + *

    The values to use for the given DMARC policy operator. For the operator + * EQUALS, if multiple values are given, they are evaluated as an OR. That is, if + * any of the given values match, the condition is deemed to match. For the + * operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. + * That is, only if the email's DMARC policy is not equal to any of the given + * values, then the condition is deemed to match.

    + */ + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + + /** + *

    The values to use for the given DMARC policy operator. For the operator + * EQUALS, if multiple values are given, they are evaluated as an OR. That is, if + * any of the given values match, the condition is deemed to match. For the + * operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. + * That is, only if the email's DMARC policy is not equal to any of the given + * values, then the condition is deemed to match.

    + */ + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + + /** + *

    The values to use for the given DMARC policy operator. For the operator + * EQUALS, if multiple values are given, they are evaluated as an OR. That is, if + * any of the given values match, the condition is deemed to match. For the + * operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. + * That is, only if the email's DMARC policy is not equal to any of the given + * values, then the condition is deemed to match.

    + */ + inline RuleDmarcExpression& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + + /** + *

    The values to use for the given DMARC policy operator. For the operator + * EQUALS, if multiple values are given, they are evaluated as an OR. That is, if + * any of the given values match, the condition is deemed to match. For the + * operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. + * That is, only if the email's DMARC policy is not equal to any of the given + * values, then the condition is deemed to match.

    + */ + inline RuleDmarcExpression& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + + /** + *

    The values to use for the given DMARC policy operator. For the operator + * EQUALS, if multiple values are given, they are evaluated as an OR. That is, if + * any of the given values match, the condition is deemed to match. For the + * operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. + * That is, only if the email's DMARC policy is not equal to any of the given + * values, then the condition is deemed to match.

    + */ + inline RuleDmarcExpression& AddValues(const RuleDmarcPolicy& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + /** + *

    The values to use for the given DMARC policy operator. For the operator + * EQUALS, if multiple values are given, they are evaluated as an OR. That is, if + * any of the given values match, the condition is deemed to match. For the + * operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. + * That is, only if the email's DMARC policy is not equal to any of the given + * values, then the condition is deemed to match.

    + */ + inline RuleDmarcExpression& AddValues(RuleDmarcPolicy&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + + private: + + RuleDmarcOperator m_operator; + bool m_operatorHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcOperator.h new file mode 100644 index 00000000000..3e2d8823ed3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcOperator.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleDmarcOperator + { + NOT_SET, + EQUALS, + NOT_EQUALS + }; + +namespace RuleDmarcOperatorMapper +{ +AWS_MAILMANAGER_API RuleDmarcOperator GetRuleDmarcOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleDmarcOperator(RuleDmarcOperator value); +} // namespace RuleDmarcOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcPolicy.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcPolicy.h new file mode 100644 index 00000000000..9b5122f044a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleDmarcPolicy.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleDmarcPolicy + { + NOT_SET, + NONE, + QUARANTINE, + REJECT + }; + +namespace RuleDmarcPolicyMapper +{ +AWS_MAILMANAGER_API RuleDmarcPolicy GetRuleDmarcPolicyForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleDmarcPolicy(RuleDmarcPolicy value); +} // namespace RuleDmarcPolicyMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpEmailAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpEmailAttribute.h new file mode 100644 index 00000000000..97e718e14ab --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpEmailAttribute.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleIpEmailAttribute + { + NOT_SET, + SOURCE_IP + }; + +namespace RuleIpEmailAttributeMapper +{ +AWS_MAILMANAGER_API RuleIpEmailAttribute GetRuleIpEmailAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleIpEmailAttribute(RuleIpEmailAttribute value); +} // namespace RuleIpEmailAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpExpression.h new file mode 100644 index 00000000000..7525c1b7d88 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpExpression.h @@ -0,0 +1,210 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    An IP address expression matching certain IP addresses within a given range + * of IP addresses.

    See Also:

    AWS + * API Reference

    + */ + class RuleIpExpression + { + public: + AWS_MAILMANAGER_API RuleIpExpression(); + AWS_MAILMANAGER_API RuleIpExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleIpExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The IP address to evaluate in this condition.

    + */ + inline const RuleIpToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The IP address to evaluate in this condition.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The IP address to evaluate in this condition.

    + */ + inline void SetEvaluate(const RuleIpToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The IP address to evaluate in this condition.

    + */ + inline void SetEvaluate(RuleIpToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The IP address to evaluate in this condition.

    + */ + inline RuleIpExpression& WithEvaluate(const RuleIpToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The IP address to evaluate in this condition.

    + */ + inline RuleIpExpression& WithEvaluate(RuleIpToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The operator to evaluate the IP address.

    + */ + inline const RuleIpOperator& GetOperator() const{ return m_operator; } + + /** + *

    The operator to evaluate the IP address.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The operator to evaluate the IP address.

    + */ + inline void SetOperator(const RuleIpOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The operator to evaluate the IP address.

    + */ + inline void SetOperator(RuleIpOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The operator to evaluate the IP address.

    + */ + inline RuleIpExpression& WithOperator(const RuleIpOperator& value) { SetOperator(value); return *this;} + + /** + *

    The operator to evaluate the IP address.

    + */ + inline RuleIpExpression& WithOperator(RuleIpOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline RuleIpExpression& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline RuleIpExpression& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline RuleIpExpression& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline RuleIpExpression& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + + /** + *

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the + * email's IP address. For the operator CIDR_MATCHES, if multiple values are given, + * they are evaluated as an OR. That is, if the IP address is contained within any + * of the given CIDR ranges, the condition is deemed to match. For + * NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to + * match if the IP address is not contained in any of the given CIDR ranges.

    + */ + inline RuleIpExpression& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + private: + + RuleIpToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + RuleIpOperator m_operator; + bool m_operatorHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpOperator.h new file mode 100644 index 00000000000..4ea441fb9f1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpOperator.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleIpOperator + { + NOT_SET, + CIDR_MATCHES, + NOT_CIDR_MATCHES + }; + +namespace RuleIpOperatorMapper +{ +AWS_MAILMANAGER_API RuleIpOperator GetRuleIpOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleIpOperator(RuleIpOperator value); +} // namespace RuleIpOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpToEvaluate.h new file mode 100644 index 00000000000..4657042ff0b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleIpToEvaluate.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The IP address to evaluate for this condition.

    See Also:

    AWS + * API Reference

    + */ + class RuleIpToEvaluate + { + public: + AWS_MAILMANAGER_API RuleIpToEvaluate(); + AWS_MAILMANAGER_API RuleIpToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleIpToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The attribute of the email to evaluate.

    + */ + inline const RuleIpEmailAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The attribute of the email to evaluate.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The attribute of the email to evaluate.

    + */ + inline void SetAttribute(const RuleIpEmailAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The attribute of the email to evaluate.

    + */ + inline void SetAttribute(RuleIpEmailAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The attribute of the email to evaluate.

    + */ + inline RuleIpToEvaluate& WithAttribute(const RuleIpEmailAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The attribute of the email to evaluate.

    + */ + inline RuleIpToEvaluate& WithAttribute(RuleIpEmailAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + RuleIpEmailAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberEmailAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberEmailAttribute.h new file mode 100644 index 00000000000..6998f31a585 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberEmailAttribute.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleNumberEmailAttribute + { + NOT_SET, + MESSAGE_SIZE + }; + +namespace RuleNumberEmailAttributeMapper +{ +AWS_MAILMANAGER_API RuleNumberEmailAttribute GetRuleNumberEmailAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleNumberEmailAttribute(RuleNumberEmailAttribute value); +} // namespace RuleNumberEmailAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberExpression.h new file mode 100644 index 00000000000..e5c338a9286 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberExpression.h @@ -0,0 +1,138 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A number expression to match numeric conditions with integers from the + * incoming email.

    See Also:

    AWS + * API Reference

    + */ + class RuleNumberExpression + { + public: + AWS_MAILMANAGER_API RuleNumberExpression(); + AWS_MAILMANAGER_API RuleNumberExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleNumberExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The number to evaluate in a numeric condition expression.

    + */ + inline const RuleNumberToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The number to evaluate in a numeric condition expression.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The number to evaluate in a numeric condition expression.

    + */ + inline void SetEvaluate(const RuleNumberToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The number to evaluate in a numeric condition expression.

    + */ + inline void SetEvaluate(RuleNumberToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The number to evaluate in a numeric condition expression.

    + */ + inline RuleNumberExpression& WithEvaluate(const RuleNumberToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The number to evaluate in a numeric condition expression.

    + */ + inline RuleNumberExpression& WithEvaluate(RuleNumberToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The operator for a numeric condition expression.

    + */ + inline const RuleNumberOperator& GetOperator() const{ return m_operator; } + + /** + *

    The operator for a numeric condition expression.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The operator for a numeric condition expression.

    + */ + inline void SetOperator(const RuleNumberOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The operator for a numeric condition expression.

    + */ + inline void SetOperator(RuleNumberOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The operator for a numeric condition expression.

    + */ + inline RuleNumberExpression& WithOperator(const RuleNumberOperator& value) { SetOperator(value); return *this;} + + /** + *

    The operator for a numeric condition expression.

    + */ + inline RuleNumberExpression& WithOperator(RuleNumberOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The value to evaluate in a numeric condition expression.

    + */ + inline double GetValue() const{ return m_value; } + + /** + *

    The value to evaluate in a numeric condition expression.

    + */ + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + + /** + *

    The value to evaluate in a numeric condition expression.

    + */ + inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } + + /** + *

    The value to evaluate in a numeric condition expression.

    + */ + inline RuleNumberExpression& WithValue(double value) { SetValue(value); return *this;} + + private: + + RuleNumberToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + RuleNumberOperator m_operator; + bool m_operatorHasBeenSet = false; + + double m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberOperator.h new file mode 100644 index 00000000000..7c4d3c87d47 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberOperator.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleNumberOperator + { + NOT_SET, + EQUALS, + NOT_EQUALS, + LESS_THAN, + GREATER_THAN, + LESS_THAN_OR_EQUAL, + GREATER_THAN_OR_EQUAL + }; + +namespace RuleNumberOperatorMapper +{ +AWS_MAILMANAGER_API RuleNumberOperator GetRuleNumberOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleNumberOperator(RuleNumberOperator value); +} // namespace RuleNumberOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberToEvaluate.h new file mode 100644 index 00000000000..f5c46c0bcbe --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleNumberToEvaluate.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The number to evaluate in a numeric condition expression.

    See + * Also:

    AWS + * API Reference

    + */ + class RuleNumberToEvaluate + { + public: + AWS_MAILMANAGER_API RuleNumberToEvaluate(); + AWS_MAILMANAGER_API RuleNumberToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleNumberToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    An email attribute that is used as the number to evaluate.

    + */ + inline const RuleNumberEmailAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    An email attribute that is used as the number to evaluate.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    An email attribute that is used as the number to evaluate.

    + */ + inline void SetAttribute(const RuleNumberEmailAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    An email attribute that is used as the number to evaluate.

    + */ + inline void SetAttribute(RuleNumberEmailAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    An email attribute that is used as the number to evaluate.

    + */ + inline RuleNumberToEvaluate& WithAttribute(const RuleNumberEmailAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    An email attribute that is used as the number to evaluate.

    + */ + inline RuleNumberToEvaluate& WithAttribute(RuleNumberEmailAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + RuleNumberEmailAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleSet.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleSet.h new file mode 100644 index 00000000000..751ce829681 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleSet.h @@ -0,0 +1,168 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A rule set contains a list of rules that are evaluated in order. Each rule is + * evaluated sequentially for each email.

    See Also:

    AWS + * API Reference

    + */ + class RuleSet + { + public: + AWS_MAILMANAGER_API RuleSet(); + AWS_MAILMANAGER_API RuleSet(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleSet& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The last modification date of the rule set.

    + */ + inline const Aws::Utils::DateTime& GetLastModificationDate() const{ return m_lastModificationDate; } + + /** + *

    The last modification date of the rule set.

    + */ + inline bool LastModificationDateHasBeenSet() const { return m_lastModificationDateHasBeenSet; } + + /** + *

    The last modification date of the rule set.

    + */ + inline void SetLastModificationDate(const Aws::Utils::DateTime& value) { m_lastModificationDateHasBeenSet = true; m_lastModificationDate = value; } + + /** + *

    The last modification date of the rule set.

    + */ + inline void SetLastModificationDate(Aws::Utils::DateTime&& value) { m_lastModificationDateHasBeenSet = true; m_lastModificationDate = std::move(value); } + + /** + *

    The last modification date of the rule set.

    + */ + inline RuleSet& WithLastModificationDate(const Aws::Utils::DateTime& value) { SetLastModificationDate(value); return *this;} + + /** + *

    The last modification date of the rule set.

    + */ + inline RuleSet& WithLastModificationDate(Aws::Utils::DateTime&& value) { SetLastModificationDate(std::move(value)); return *this;} + + + /** + *

    The identifier of the rule set.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of the rule set.

    + */ + inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; } + + /** + *

    The identifier of the rule set.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = value; } + + /** + *

    The identifier of the rule set.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::move(value); } + + /** + *

    The identifier of the rule set.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId.assign(value); } + + /** + *

    The identifier of the rule set.

    + */ + inline RuleSet& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of the rule set.

    + */ + inline RuleSet& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of the rule set.

    + */ + inline RuleSet& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + + /** + *

    A user-friendly name for the rule set.

    + */ + inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); } + + /** + *

    A user-friendly name for the rule set.

    + */ + inline RuleSet& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;} + + /** + *

    A user-friendly name for the rule set.

    + */ + inline RuleSet& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;} + + /** + *

    A user-friendly name for the rule set.

    + */ + inline RuleSet& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;} + + private: + + Aws::Utils::DateTime m_lastModificationDate; + bool m_lastModificationDateHasBeenSet = false; + + Aws::String m_ruleSetId; + bool m_ruleSetIdHasBeenSet = false; + + Aws::String m_ruleSetName; + bool m_ruleSetNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringEmailAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringEmailAttribute.h new file mode 100644 index 00000000000..9d21a211a1b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringEmailAttribute.h @@ -0,0 +1,37 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleStringEmailAttribute + { + NOT_SET, + MAIL_FROM, + HELO, + RECIPIENT, + SENDER, + FROM, + SUBJECT, + TO, + CC + }; + +namespace RuleStringEmailAttributeMapper +{ +AWS_MAILMANAGER_API RuleStringEmailAttribute GetRuleStringEmailAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleStringEmailAttribute(RuleStringEmailAttribute value); +} // namespace RuleStringEmailAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringExpression.h new file mode 100644 index 00000000000..b183dec2957 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringExpression.h @@ -0,0 +1,210 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A string expression is evaluated against strings or substrings of the + * email.

    See Also:

    AWS + * API Reference

    + */ + class RuleStringExpression + { + public: + AWS_MAILMANAGER_API RuleStringExpression(); + AWS_MAILMANAGER_API RuleStringExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleStringExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The string to evaluate in a string condition expression.

    + */ + inline const RuleStringToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The string to evaluate in a string condition expression.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The string to evaluate in a string condition expression.

    + */ + inline void SetEvaluate(const RuleStringToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The string to evaluate in a string condition expression.

    + */ + inline void SetEvaluate(RuleStringToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The string to evaluate in a string condition expression.

    + */ + inline RuleStringExpression& WithEvaluate(const RuleStringToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The string to evaluate in a string condition expression.

    + */ + inline RuleStringExpression& WithEvaluate(RuleStringToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The matching operator for a string condition expression.

    + */ + inline const RuleStringOperator& GetOperator() const{ return m_operator; } + + /** + *

    The matching operator for a string condition expression.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The matching operator for a string condition expression.

    + */ + inline void SetOperator(const RuleStringOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The matching operator for a string condition expression.

    + */ + inline void SetOperator(RuleStringOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The matching operator for a string condition expression.

    + */ + inline RuleStringExpression& WithOperator(const RuleStringOperator& value) { SetOperator(value); return *this;} + + /** + *

    The matching operator for a string condition expression.

    + */ + inline RuleStringExpression& WithOperator(RuleStringOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline RuleStringExpression& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline RuleStringExpression& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline RuleStringExpression& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline RuleStringExpression& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + + /** + *

    The string(s) to be evaluated in a string condition expression. For all + * operators, except for NOT_EQUALS, if multiple values are given, the values are + * processed as an OR. That is, if any of the values match the email's string using + * the given operator, the condition is deemed to match. However, for NOT_EQUALS, + * the condition is only deemed to match if none of the given strings match the + * email's string.

    + */ + inline RuleStringExpression& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + private: + + RuleStringToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + RuleStringOperator m_operator; + bool m_operatorHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringOperator.h new file mode 100644 index 00000000000..fb9d5246257 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringOperator.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleStringOperator + { + NOT_SET, + EQUALS, + NOT_EQUALS, + STARTS_WITH, + ENDS_WITH, + CONTAINS + }; + +namespace RuleStringOperatorMapper +{ +AWS_MAILMANAGER_API RuleStringOperator GetRuleStringOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleStringOperator(RuleStringOperator value); +} // namespace RuleStringOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringToEvaluate.h new file mode 100644 index 00000000000..a0fa11dbe64 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleStringToEvaluate.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The string to evaluate in a string condition expression.

    See + * Also:

    AWS + * API Reference

    + */ + class RuleStringToEvaluate + { + public: + AWS_MAILMANAGER_API RuleStringToEvaluate(); + AWS_MAILMANAGER_API RuleStringToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleStringToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The email attribute to evaluate in a string condition expression.

    + */ + inline const RuleStringEmailAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The email attribute to evaluate in a string condition expression.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The email attribute to evaluate in a string condition expression.

    + */ + inline void SetAttribute(const RuleStringEmailAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The email attribute to evaluate in a string condition expression.

    + */ + inline void SetAttribute(RuleStringEmailAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The email attribute to evaluate in a string condition expression.

    + */ + inline RuleStringToEvaluate& WithAttribute(const RuleStringEmailAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The email attribute to evaluate in a string condition expression.

    + */ + inline RuleStringToEvaluate& WithAttribute(RuleStringEmailAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + RuleStringEmailAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdict.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdict.h new file mode 100644 index 00000000000..5560e09094b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdict.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleVerdict + { + NOT_SET, + PASS, + FAIL, + GRAY, + PROCESSING_FAILED + }; + +namespace RuleVerdictMapper +{ +AWS_MAILMANAGER_API RuleVerdict GetRuleVerdictForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleVerdict(RuleVerdict value); +} // namespace RuleVerdictMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictAttribute.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictAttribute.h new file mode 100644 index 00000000000..b7e8179b3ce --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictAttribute.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleVerdictAttribute + { + NOT_SET, + SPF, + DKIM + }; + +namespace RuleVerdictAttributeMapper +{ +AWS_MAILMANAGER_API RuleVerdictAttribute GetRuleVerdictAttributeForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleVerdictAttribute(RuleVerdictAttribute value); +} // namespace RuleVerdictAttributeMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictExpression.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictExpression.h new file mode 100644 index 00000000000..f33dae796f1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictExpression.h @@ -0,0 +1,192 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A verdict expression is evaluated against verdicts of the + * email.

    See Also:

    AWS + * API Reference

    + */ + class RuleVerdictExpression + { + public: + AWS_MAILMANAGER_API RuleVerdictExpression(); + AWS_MAILMANAGER_API RuleVerdictExpression(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleVerdictExpression& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The verdict to evaluate in a verdict condition expression.

    + */ + inline const RuleVerdictToEvaluate& GetEvaluate() const{ return m_evaluate; } + + /** + *

    The verdict to evaluate in a verdict condition expression.

    + */ + inline bool EvaluateHasBeenSet() const { return m_evaluateHasBeenSet; } + + /** + *

    The verdict to evaluate in a verdict condition expression.

    + */ + inline void SetEvaluate(const RuleVerdictToEvaluate& value) { m_evaluateHasBeenSet = true; m_evaluate = value; } + + /** + *

    The verdict to evaluate in a verdict condition expression.

    + */ + inline void SetEvaluate(RuleVerdictToEvaluate&& value) { m_evaluateHasBeenSet = true; m_evaluate = std::move(value); } + + /** + *

    The verdict to evaluate in a verdict condition expression.

    + */ + inline RuleVerdictExpression& WithEvaluate(const RuleVerdictToEvaluate& value) { SetEvaluate(value); return *this;} + + /** + *

    The verdict to evaluate in a verdict condition expression.

    + */ + inline RuleVerdictExpression& WithEvaluate(RuleVerdictToEvaluate&& value) { SetEvaluate(std::move(value)); return *this;} + + + /** + *

    The matching operator for a verdict condition expression.

    + */ + inline const RuleVerdictOperator& GetOperator() const{ return m_operator; } + + /** + *

    The matching operator for a verdict condition expression.

    + */ + inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; } + + /** + *

    The matching operator for a verdict condition expression.

    + */ + inline void SetOperator(const RuleVerdictOperator& value) { m_operatorHasBeenSet = true; m_operator = value; } + + /** + *

    The matching operator for a verdict condition expression.

    + */ + inline void SetOperator(RuleVerdictOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); } + + /** + *

    The matching operator for a verdict condition expression.

    + */ + inline RuleVerdictExpression& WithOperator(const RuleVerdictOperator& value) { SetOperator(value); return *this;} + + /** + *

    The matching operator for a verdict condition expression.

    + */ + inline RuleVerdictExpression& WithOperator(RuleVerdictOperator&& value) { SetOperator(std::move(value)); return *this;} + + + /** + *

    The values to match with the email's verdict using the given operator. For + * the EQUALS operator, if multiple values are given, the condition is deemed to + * match if any of the given verdicts match that of the email. For the NOT_EQUALS + * operator, if multiple values are given, the condition is deemed to match of none + * of the given verdicts match the verdict of the email.

    + */ + inline const Aws::Vector& GetValues() const{ return m_values; } + + /** + *

    The values to match with the email's verdict using the given operator. For + * the EQUALS operator, if multiple values are given, the condition is deemed to + * match if any of the given verdicts match that of the email. For the NOT_EQUALS + * operator, if multiple values are given, the condition is deemed to match of none + * of the given verdicts match the verdict of the email.

    + */ + inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } + + /** + *

    The values to match with the email's verdict using the given operator. For + * the EQUALS operator, if multiple values are given, the condition is deemed to + * match if any of the given verdicts match that of the email. For the NOT_EQUALS + * operator, if multiple values are given, the condition is deemed to match of none + * of the given verdicts match the verdict of the email.

    + */ + inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } + + /** + *

    The values to match with the email's verdict using the given operator. For + * the EQUALS operator, if multiple values are given, the condition is deemed to + * match if any of the given verdicts match that of the email. For the NOT_EQUALS + * operator, if multiple values are given, the condition is deemed to match of none + * of the given verdicts match the verdict of the email.

    + */ + inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } + + /** + *

    The values to match with the email's verdict using the given operator. For + * the EQUALS operator, if multiple values are given, the condition is deemed to + * match if any of the given verdicts match that of the email. For the NOT_EQUALS + * operator, if multiple values are given, the condition is deemed to match of none + * of the given verdicts match the verdict of the email.

    + */ + inline RuleVerdictExpression& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} + + /** + *

    The values to match with the email's verdict using the given operator. For + * the EQUALS operator, if multiple values are given, the condition is deemed to + * match if any of the given verdicts match that of the email. For the NOT_EQUALS + * operator, if multiple values are given, the condition is deemed to match of none + * of the given verdicts match the verdict of the email.

    + */ + inline RuleVerdictExpression& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} + + /** + *

    The values to match with the email's verdict using the given operator. For + * the EQUALS operator, if multiple values are given, the condition is deemed to + * match if any of the given verdicts match that of the email. For the NOT_EQUALS + * operator, if multiple values are given, the condition is deemed to match of none + * of the given verdicts match the verdict of the email.

    + */ + inline RuleVerdictExpression& AddValues(const RuleVerdict& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } + + /** + *

    The values to match with the email's verdict using the given operator. For + * the EQUALS operator, if multiple values are given, the condition is deemed to + * match if any of the given verdicts match that of the email. For the NOT_EQUALS + * operator, if multiple values are given, the condition is deemed to match of none + * of the given verdicts match the verdict of the email.

    + */ + inline RuleVerdictExpression& AddValues(RuleVerdict&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } + + private: + + RuleVerdictToEvaluate m_evaluate; + bool m_evaluateHasBeenSet = false; + + RuleVerdictOperator m_operator; + bool m_operatorHasBeenSet = false; + + Aws::Vector m_values; + bool m_valuesHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictOperator.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictOperator.h new file mode 100644 index 00000000000..1196e2ffa92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictOperator.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class RuleVerdictOperator + { + NOT_SET, + EQUALS, + NOT_EQUALS + }; + +namespace RuleVerdictOperatorMapper +{ +AWS_MAILMANAGER_API RuleVerdictOperator GetRuleVerdictOperatorForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForRuleVerdictOperator(RuleVerdictOperator value); +} // namespace RuleVerdictOperatorMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictToEvaluate.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictToEvaluate.h new file mode 100644 index 00000000000..bbd8874f45f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/RuleVerdictToEvaluate.h @@ -0,0 +1,120 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The verdict to evaluate in a verdict condition expression.

    See + * Also:

    AWS + * API Reference

    + */ + class RuleVerdictToEvaluate + { + public: + AWS_MAILMANAGER_API RuleVerdictToEvaluate(); + AWS_MAILMANAGER_API RuleVerdictToEvaluate(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API RuleVerdictToEvaluate& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The Add On ARN and its returned value to evaluate in a verdict condition + * expression.

    + */ + inline const Analysis& GetAnalysis() const{ return m_analysis; } + + /** + *

    The Add On ARN and its returned value to evaluate in a verdict condition + * expression.

    + */ + inline bool AnalysisHasBeenSet() const { return m_analysisHasBeenSet; } + + /** + *

    The Add On ARN and its returned value to evaluate in a verdict condition + * expression.

    + */ + inline void SetAnalysis(const Analysis& value) { m_analysisHasBeenSet = true; m_analysis = value; } + + /** + *

    The Add On ARN and its returned value to evaluate in a verdict condition + * expression.

    + */ + inline void SetAnalysis(Analysis&& value) { m_analysisHasBeenSet = true; m_analysis = std::move(value); } + + /** + *

    The Add On ARN and its returned value to evaluate in a verdict condition + * expression.

    + */ + inline RuleVerdictToEvaluate& WithAnalysis(const Analysis& value) { SetAnalysis(value); return *this;} + + /** + *

    The Add On ARN and its returned value to evaluate in a verdict condition + * expression.

    + */ + inline RuleVerdictToEvaluate& WithAnalysis(Analysis&& value) { SetAnalysis(std::move(value)); return *this;} + + + /** + *

    The email verdict attribute to evaluate in a string verdict expression.

    + */ + inline const RuleVerdictAttribute& GetAttribute() const{ return m_attribute; } + + /** + *

    The email verdict attribute to evaluate in a string verdict expression.

    + */ + inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; } + + /** + *

    The email verdict attribute to evaluate in a string verdict expression.

    + */ + inline void SetAttribute(const RuleVerdictAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; } + + /** + *

    The email verdict attribute to evaluate in a string verdict expression.

    + */ + inline void SetAttribute(RuleVerdictAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); } + + /** + *

    The email verdict attribute to evaluate in a string verdict expression.

    + */ + inline RuleVerdictToEvaluate& WithAttribute(const RuleVerdictAttribute& value) { SetAttribute(value); return *this;} + + /** + *

    The email verdict attribute to evaluate in a string verdict expression.

    + */ + inline RuleVerdictToEvaluate& WithAttribute(RuleVerdictAttribute&& value) { SetAttribute(std::move(value)); return *this;} + + private: + + Analysis m_analysis; + bool m_analysisHasBeenSet = false; + + RuleVerdictAttribute m_attribute; + bool m_attributeHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/S3Action.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/S3Action.h new file mode 100644 index 00000000000..96a02dac5ef --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/S3Action.h @@ -0,0 +1,284 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    Writes the MIME content of the email to an S3 bucket.

    See + * Also:

    AWS + * API Reference

    + */ + class S3Action + { + public: + AWS_MAILMANAGER_API S3Action(); + AWS_MAILMANAGER_API S3Action(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API S3Action& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified the bucket has + * been deleted.

    + */ + inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified the bucket has + * been deleted.

    + */ + inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified the bucket has + * been deleted.

    + */ + inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified the bucket has + * been deleted.

    + */ + inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified the bucket has + * been deleted.

    + */ + inline S3Action& WithActionFailurePolicy(const ActionFailurePolicy& value) { SetActionFailurePolicy(value); return *this;} + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the specified the bucket has + * been deleted.

    + */ + inline S3Action& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and + * kms:GenerateDataKey APIs for the given bucket.

    + */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and + * kms:GenerateDataKey APIs for the given bucket.

    + */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and + * kms:GenerateDataKey APIs for the given bucket.

    + */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and + * kms:GenerateDataKey APIs for the given bucket.

    + */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and + * kms:GenerateDataKey APIs for the given bucket.

    + */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and + * kms:GenerateDataKey APIs for the given bucket.

    + */ + inline S3Action& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and + * kms:GenerateDataKey APIs for the given bucket.

    + */ + inline S3Action& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. + * This role must have access to the s3:PutObject, kms:Encrypt, and + * kms:GenerateDataKey APIs for the given bucket.

    + */ + inline S3Action& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + + /** + *

    The bucket name of the S3 bucket to write to.

    + */ + inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; } + + /** + *

    The bucket name of the S3 bucket to write to.

    + */ + inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; } + + /** + *

    The bucket name of the S3 bucket to write to.

    + */ + inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; } + + /** + *

    The bucket name of the S3 bucket to write to.

    + */ + inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); } + + /** + *

    The bucket name of the S3 bucket to write to.

    + */ + inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); } + + /** + *

    The bucket name of the S3 bucket to write to.

    + */ + inline S3Action& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;} + + /** + *

    The bucket name of the S3 bucket to write to.

    + */ + inline S3Action& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;} + + /** + *

    The bucket name of the S3 bucket to write to.

    + */ + inline S3Action& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;} + + + /** + *

    The S3 prefix to use for the write to the s3 bucket.

    + */ + inline const Aws::String& GetS3Prefix() const{ return m_s3Prefix; } + + /** + *

    The S3 prefix to use for the write to the s3 bucket.

    + */ + inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; } + + /** + *

    The S3 prefix to use for the write to the s3 bucket.

    + */ + inline void SetS3Prefix(const Aws::String& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = value; } + + /** + *

    The S3 prefix to use for the write to the s3 bucket.

    + */ + inline void SetS3Prefix(Aws::String&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::move(value); } + + /** + *

    The S3 prefix to use for the write to the s3 bucket.

    + */ + inline void SetS3Prefix(const char* value) { m_s3PrefixHasBeenSet = true; m_s3Prefix.assign(value); } + + /** + *

    The S3 prefix to use for the write to the s3 bucket.

    + */ + inline S3Action& WithS3Prefix(const Aws::String& value) { SetS3Prefix(value); return *this;} + + /** + *

    The S3 prefix to use for the write to the s3 bucket.

    + */ + inline S3Action& WithS3Prefix(Aws::String&& value) { SetS3Prefix(std::move(value)); return *this;} + + /** + *

    The S3 prefix to use for the write to the s3 bucket.

    + */ + inline S3Action& WithS3Prefix(const char* value) { SetS3Prefix(value); return *this;} + + + /** + *

    The KMS Key ID to use to encrypt the message in S3.

    + */ + inline const Aws::String& GetS3SseKmsKeyId() const{ return m_s3SseKmsKeyId; } + + /** + *

    The KMS Key ID to use to encrypt the message in S3.

    + */ + inline bool S3SseKmsKeyIdHasBeenSet() const { return m_s3SseKmsKeyIdHasBeenSet; } + + /** + *

    The KMS Key ID to use to encrypt the message in S3.

    + */ + inline void SetS3SseKmsKeyId(const Aws::String& value) { m_s3SseKmsKeyIdHasBeenSet = true; m_s3SseKmsKeyId = value; } + + /** + *

    The KMS Key ID to use to encrypt the message in S3.

    + */ + inline void SetS3SseKmsKeyId(Aws::String&& value) { m_s3SseKmsKeyIdHasBeenSet = true; m_s3SseKmsKeyId = std::move(value); } + + /** + *

    The KMS Key ID to use to encrypt the message in S3.

    + */ + inline void SetS3SseKmsKeyId(const char* value) { m_s3SseKmsKeyIdHasBeenSet = true; m_s3SseKmsKeyId.assign(value); } + + /** + *

    The KMS Key ID to use to encrypt the message in S3.

    + */ + inline S3Action& WithS3SseKmsKeyId(const Aws::String& value) { SetS3SseKmsKeyId(value); return *this;} + + /** + *

    The KMS Key ID to use to encrypt the message in S3.

    + */ + inline S3Action& WithS3SseKmsKeyId(Aws::String&& value) { SetS3SseKmsKeyId(std::move(value)); return *this;} + + /** + *

    The KMS Key ID to use to encrypt the message in S3.

    + */ + inline S3Action& WithS3SseKmsKeyId(const char* value) { SetS3SseKmsKeyId(value); return *this;} + + private: + + ActionFailurePolicy m_actionFailurePolicy; + bool m_actionFailurePolicyHasBeenSet = false; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet = false; + + Aws::String m_s3Bucket; + bool m_s3BucketHasBeenSet = false; + + Aws::String m_s3Prefix; + bool m_s3PrefixHasBeenSet = false; + + Aws::String m_s3SseKmsKeyId; + bool m_s3SseKmsKeyIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/S3ExportDestinationConfiguration.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/S3ExportDestinationConfiguration.h new file mode 100644 index 00000000000..7fd3a80c2a0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/S3ExportDestinationConfiguration.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The configuration for exporting email data to an Amazon S3 + * bucket.

    See Also:

    AWS + * API Reference

    + */ + class S3ExportDestinationConfiguration + { + public: + AWS_MAILMANAGER_API S3ExportDestinationConfiguration(); + AWS_MAILMANAGER_API S3ExportDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API S3ExportDestinationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The S3 location to deliver the exported email data.

    + */ + inline const Aws::String& GetS3Location() const{ return m_s3Location; } + + /** + *

    The S3 location to deliver the exported email data.

    + */ + inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; } + + /** + *

    The S3 location to deliver the exported email data.

    + */ + inline void SetS3Location(const Aws::String& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; } + + /** + *

    The S3 location to deliver the exported email data.

    + */ + inline void SetS3Location(Aws::String&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); } + + /** + *

    The S3 location to deliver the exported email data.

    + */ + inline void SetS3Location(const char* value) { m_s3LocationHasBeenSet = true; m_s3Location.assign(value); } + + /** + *

    The S3 location to deliver the exported email data.

    + */ + inline S3ExportDestinationConfiguration& WithS3Location(const Aws::String& value) { SetS3Location(value); return *this;} + + /** + *

    The S3 location to deliver the exported email data.

    + */ + inline S3ExportDestinationConfiguration& WithS3Location(Aws::String&& value) { SetS3Location(std::move(value)); return *this;} + + /** + *

    The S3 location to deliver the exported email data.

    + */ + inline S3ExportDestinationConfiguration& WithS3Location(const char* value) { SetS3Location(value); return *this;} + + private: + + Aws::String m_s3Location; + bool m_s3LocationHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchState.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchState.h new file mode 100644 index 00000000000..6a9510c4b3b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchState.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + enum class SearchState + { + NOT_SET, + QUEUED, + RUNNING, + COMPLETED, + FAILED, + CANCELLED + }; + +namespace SearchStateMapper +{ +AWS_MAILMANAGER_API SearchState GetSearchStateForName(const Aws::String& name); + +AWS_MAILMANAGER_API Aws::String GetNameForSearchState(SearchState value); +} // namespace SearchStateMapper +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchStatus.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchStatus.h new file mode 100644 index 00000000000..4e3c1565533 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchStatus.h @@ -0,0 +1,192 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The current status of an archive search job.

    See Also:

    AWS + * API Reference

    + */ + class SearchStatus + { + public: + AWS_MAILMANAGER_API SearchStatus(); + AWS_MAILMANAGER_API SearchStatus(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API SearchStatus& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The timestamp of when the search completed (if finished).

    + */ + inline const Aws::Utils::DateTime& GetCompletionTimestamp() const{ return m_completionTimestamp; } + + /** + *

    The timestamp of when the search completed (if finished).

    + */ + inline bool CompletionTimestampHasBeenSet() const { return m_completionTimestampHasBeenSet; } + + /** + *

    The timestamp of when the search completed (if finished).

    + */ + inline void SetCompletionTimestamp(const Aws::Utils::DateTime& value) { m_completionTimestampHasBeenSet = true; m_completionTimestamp = value; } + + /** + *

    The timestamp of when the search completed (if finished).

    + */ + inline void SetCompletionTimestamp(Aws::Utils::DateTime&& value) { m_completionTimestampHasBeenSet = true; m_completionTimestamp = std::move(value); } + + /** + *

    The timestamp of when the search completed (if finished).

    + */ + inline SearchStatus& WithCompletionTimestamp(const Aws::Utils::DateTime& value) { SetCompletionTimestamp(value); return *this;} + + /** + *

    The timestamp of when the search completed (if finished).

    + */ + inline SearchStatus& WithCompletionTimestamp(Aws::Utils::DateTime&& value) { SetCompletionTimestamp(std::move(value)); return *this;} + + + /** + *

    An error message if the search failed.

    + */ + inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } + + /** + *

    An error message if the search failed.

    + */ + inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } + + /** + *

    An error message if the search failed.

    + */ + inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } + + /** + *

    An error message if the search failed.

    + */ + inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } + + /** + *

    An error message if the search failed.

    + */ + inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } + + /** + *

    An error message if the search failed.

    + */ + inline SearchStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} + + /** + *

    An error message if the search failed.

    + */ + inline SearchStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} + + /** + *

    An error message if the search failed.

    + */ + inline SearchStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} + + + /** + *

    The current state of the search job.

    + */ + inline const SearchState& GetState() const{ return m_state; } + + /** + *

    The current state of the search job.

    + */ + inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } + + /** + *

    The current state of the search job.

    + */ + inline void SetState(const SearchState& value) { m_stateHasBeenSet = true; m_state = value; } + + /** + *

    The current state of the search job.

    + */ + inline void SetState(SearchState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } + + /** + *

    The current state of the search job.

    + */ + inline SearchStatus& WithState(const SearchState& value) { SetState(value); return *this;} + + /** + *

    The current state of the search job.

    + */ + inline SearchStatus& WithState(SearchState&& value) { SetState(std::move(value)); return *this;} + + + /** + *

    The timestamp of when the search was submitted.

    + */ + inline const Aws::Utils::DateTime& GetSubmissionTimestamp() const{ return m_submissionTimestamp; } + + /** + *

    The timestamp of when the search was submitted.

    + */ + inline bool SubmissionTimestampHasBeenSet() const { return m_submissionTimestampHasBeenSet; } + + /** + *

    The timestamp of when the search was submitted.

    + */ + inline void SetSubmissionTimestamp(const Aws::Utils::DateTime& value) { m_submissionTimestampHasBeenSet = true; m_submissionTimestamp = value; } + + /** + *

    The timestamp of when the search was submitted.

    + */ + inline void SetSubmissionTimestamp(Aws::Utils::DateTime&& value) { m_submissionTimestampHasBeenSet = true; m_submissionTimestamp = std::move(value); } + + /** + *

    The timestamp of when the search was submitted.

    + */ + inline SearchStatus& WithSubmissionTimestamp(const Aws::Utils::DateTime& value) { SetSubmissionTimestamp(value); return *this;} + + /** + *

    The timestamp of when the search was submitted.

    + */ + inline SearchStatus& WithSubmissionTimestamp(Aws::Utils::DateTime&& value) { SetSubmissionTimestamp(std::move(value)); return *this;} + + private: + + Aws::Utils::DateTime m_completionTimestamp; + bool m_completionTimestampHasBeenSet = false; + + Aws::String m_errorMessage; + bool m_errorMessageHasBeenSet = false; + + SearchState m_state; + bool m_stateHasBeenSet = false; + + Aws::Utils::DateTime m_submissionTimestamp; + bool m_submissionTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchSummary.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchSummary.h new file mode 100644 index 00000000000..948c1a34cc5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SearchSummary.h @@ -0,0 +1,123 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    Summary details of an archive search job.

    See Also:

    AWS + * API Reference

    + */ + class SearchSummary + { + public: + AWS_MAILMANAGER_API SearchSummary(); + AWS_MAILMANAGER_API SearchSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API SearchSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The unique identifier of the search job.

    + */ + inline const Aws::String& GetSearchId() const{ return m_searchId; } + + /** + *

    The unique identifier of the search job.

    + */ + inline bool SearchIdHasBeenSet() const { return m_searchIdHasBeenSet; } + + /** + *

    The unique identifier of the search job.

    + */ + inline void SetSearchId(const Aws::String& value) { m_searchIdHasBeenSet = true; m_searchId = value; } + + /** + *

    The unique identifier of the search job.

    + */ + inline void SetSearchId(Aws::String&& value) { m_searchIdHasBeenSet = true; m_searchId = std::move(value); } + + /** + *

    The unique identifier of the search job.

    + */ + inline void SetSearchId(const char* value) { m_searchIdHasBeenSet = true; m_searchId.assign(value); } + + /** + *

    The unique identifier of the search job.

    + */ + inline SearchSummary& WithSearchId(const Aws::String& value) { SetSearchId(value); return *this;} + + /** + *

    The unique identifier of the search job.

    + */ + inline SearchSummary& WithSearchId(Aws::String&& value) { SetSearchId(std::move(value)); return *this;} + + /** + *

    The unique identifier of the search job.

    + */ + inline SearchSummary& WithSearchId(const char* value) { SetSearchId(value); return *this;} + + + /** + *

    The current status of the search job.

    + */ + inline const SearchStatus& GetStatus() const{ return m_status; } + + /** + *

    The current status of the search job.

    + */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *

    The current status of the search job.

    + */ + inline void SetStatus(const SearchStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *

    The current status of the search job.

    + */ + inline void SetStatus(SearchStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *

    The current status of the search job.

    + */ + inline SearchSummary& WithStatus(const SearchStatus& value) { SetStatus(value); return *this;} + + /** + *

    The current status of the search job.

    + */ + inline SearchSummary& WithStatus(SearchStatus&& value) { SetStatus(std::move(value)); return *this;} + + private: + + Aws::String m_searchId; + bool m_searchIdHasBeenSet = false; + + SearchStatus m_status; + bool m_statusHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SendAction.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SendAction.h new file mode 100644 index 00000000000..7d0022e8e8d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/SendAction.h @@ -0,0 +1,144 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    Sends the email to the internet using the ses:SendRawEmail API.

    See + * Also:

    AWS + * API Reference

    + */ + class SendAction + { + public: + AWS_MAILMANAGER_API SendAction(); + AWS_MAILMANAGER_API SendAction(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API SendAction& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the caller does not have the + * permissions to call the sendRawEmail API.

    + */ + inline const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the caller does not have the + * permissions to call the sendRawEmail API.

    + */ + inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the caller does not have the + * permissions to call the sendRawEmail API.

    + */ + inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the caller does not have the + * permissions to call the sendRawEmail API.

    + */ + inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); } + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the caller does not have the + * permissions to call the sendRawEmail API.

    + */ + inline SendAction& WithActionFailurePolicy(const ActionFailurePolicy& value) { SetActionFailurePolicy(value); return *this;} + + /** + *

    A policy that states what to do in the case of failure. The action will fail + * if there are configuration errors. For example, the caller does not have the + * permissions to call the sendRawEmail API.

    + */ + inline SendAction& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;} + + + /** + *

    The Amazon Resource Name (ARN) of the role to use for this action. This role + * must have access to the ses:SendRawEmail API.

    + */ + inline const Aws::String& GetRoleArn() const{ return m_roleArn; } + + /** + *

    The Amazon Resource Name (ARN) of the role to use for this action. This role + * must have access to the ses:SendRawEmail API.

    + */ + inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the role to use for this action. This role + * must have access to the ses:SendRawEmail API.

    + */ + inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the role to use for this action. This role + * must have access to the ses:SendRawEmail API.

    + */ + inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the role to use for this action. This role + * must have access to the ses:SendRawEmail API.

    + */ + inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the role to use for this action. This role + * must have access to the ses:SendRawEmail API.

    + */ + inline SendAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the role to use for this action. This role + * must have access to the ses:SendRawEmail API.

    + */ + inline SendAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the role to use for this action. This role + * must have access to the ses:SendRawEmail API.

    + */ + inline SendAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} + + private: + + ActionFailurePolicy m_actionFailurePolicy; + bool m_actionFailurePolicyHasBeenSet = false; + + Aws::String m_roleArn; + bool m_roleArnHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveExportRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveExportRequest.h new file mode 100644 index 00000000000..585112d4d4a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveExportRequest.h @@ -0,0 +1,252 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to initiate an export of emails from an archive.

    See + * Also:

    AWS + * API Reference

    + */ + class StartArchiveExportRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API StartArchiveExportRequest(); + + // 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 "StartArchiveExport"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the archive to export emails from.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive to export emails from.

    + */ + inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; } + + /** + *

    The identifier of the archive to export emails from.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; } + + /** + *

    The identifier of the archive to export emails from.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive to export emails from.

    + */ + inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); } + + /** + *

    The identifier of the archive to export emails from.

    + */ + inline StartArchiveExportRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive to export emails from.

    + */ + inline StartArchiveExportRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive to export emails from.

    + */ + inline StartArchiveExportRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    Details on where to deliver the exported email data.

    + */ + inline const ExportDestinationConfiguration& GetExportDestinationConfiguration() const{ return m_exportDestinationConfiguration; } + + /** + *

    Details on where to deliver the exported email data.

    + */ + inline bool ExportDestinationConfigurationHasBeenSet() const { return m_exportDestinationConfigurationHasBeenSet; } + + /** + *

    Details on where to deliver the exported email data.

    + */ + inline void SetExportDestinationConfiguration(const ExportDestinationConfiguration& value) { m_exportDestinationConfigurationHasBeenSet = true; m_exportDestinationConfiguration = value; } + + /** + *

    Details on where to deliver the exported email data.

    + */ + inline void SetExportDestinationConfiguration(ExportDestinationConfiguration&& value) { m_exportDestinationConfigurationHasBeenSet = true; m_exportDestinationConfiguration = std::move(value); } + + /** + *

    Details on where to deliver the exported email data.

    + */ + inline StartArchiveExportRequest& WithExportDestinationConfiguration(const ExportDestinationConfiguration& value) { SetExportDestinationConfiguration(value); return *this;} + + /** + *

    Details on where to deliver the exported email data.

    + */ + inline StartArchiveExportRequest& WithExportDestinationConfiguration(ExportDestinationConfiguration&& value) { SetExportDestinationConfiguration(std::move(value)); return *this;} + + + /** + *

    Criteria to filter which emails are included in the export.

    + */ + inline const ArchiveFilters& GetFilters() const{ return m_filters; } + + /** + *

    Criteria to filter which emails are included in the export.

    + */ + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } + + /** + *

    Criteria to filter which emails are included in the export.

    + */ + inline void SetFilters(const ArchiveFilters& value) { m_filtersHasBeenSet = true; m_filters = value; } + + /** + *

    Criteria to filter which emails are included in the export.

    + */ + inline void SetFilters(ArchiveFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } + + /** + *

    Criteria to filter which emails are included in the export.

    + */ + inline StartArchiveExportRequest& WithFilters(const ArchiveFilters& value) { SetFilters(value); return *this;} + + /** + *

    Criteria to filter which emails are included in the export.

    + */ + inline StartArchiveExportRequest& WithFilters(ArchiveFilters&& value) { SetFilters(std::move(value)); return *this;} + + + /** + *

    The start of the timestamp range to include emails from.

    + */ + inline const Aws::Utils::DateTime& GetFromTimestamp() const{ return m_fromTimestamp; } + + /** + *

    The start of the timestamp range to include emails from.

    + */ + inline bool FromTimestampHasBeenSet() const { return m_fromTimestampHasBeenSet; } + + /** + *

    The start of the timestamp range to include emails from.

    + */ + inline void SetFromTimestamp(const Aws::Utils::DateTime& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = value; } + + /** + *

    The start of the timestamp range to include emails from.

    + */ + inline void SetFromTimestamp(Aws::Utils::DateTime&& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = std::move(value); } + + /** + *

    The start of the timestamp range to include emails from.

    + */ + inline StartArchiveExportRequest& WithFromTimestamp(const Aws::Utils::DateTime& value) { SetFromTimestamp(value); return *this;} + + /** + *

    The start of the timestamp range to include emails from.

    + */ + inline StartArchiveExportRequest& WithFromTimestamp(Aws::Utils::DateTime&& value) { SetFromTimestamp(std::move(value)); return *this;} + + + /** + *

    The maximum number of email items to include in the export.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The maximum number of email items to include in the export.

    + */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

    The maximum number of email items to include in the export.

    + */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

    The maximum number of email items to include in the export.

    + */ + inline StartArchiveExportRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

    The end of the timestamp range to include emails from.

    + */ + inline const Aws::Utils::DateTime& GetToTimestamp() const{ return m_toTimestamp; } + + /** + *

    The end of the timestamp range to include emails from.

    + */ + inline bool ToTimestampHasBeenSet() const { return m_toTimestampHasBeenSet; } + + /** + *

    The end of the timestamp range to include emails from.

    + */ + inline void SetToTimestamp(const Aws::Utils::DateTime& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = value; } + + /** + *

    The end of the timestamp range to include emails from.

    + */ + inline void SetToTimestamp(Aws::Utils::DateTime&& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = std::move(value); } + + /** + *

    The end of the timestamp range to include emails from.

    + */ + inline StartArchiveExportRequest& WithToTimestamp(const Aws::Utils::DateTime& value) { SetToTimestamp(value); return *this;} + + /** + *

    The end of the timestamp range to include emails from.

    + */ + inline StartArchiveExportRequest& WithToTimestamp(Aws::Utils::DateTime&& value) { SetToTimestamp(std::move(value)); return *this;} + + private: + + Aws::String m_archiveId; + bool m_archiveIdHasBeenSet = false; + + ExportDestinationConfiguration m_exportDestinationConfiguration; + bool m_exportDestinationConfigurationHasBeenSet = false; + + ArchiveFilters m_filters; + bool m_filtersHasBeenSet = false; + + Aws::Utils::DateTime m_fromTimestamp; + bool m_fromTimestampHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::Utils::DateTime m_toTimestamp; + bool m_toTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveExportResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveExportResult.h new file mode 100644 index 00000000000..08ad07bdadb --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveExportResult.h @@ -0,0 +1,106 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response from initiating an archive export.

    See Also:

    AWS + * API Reference

    + */ + class StartArchiveExportResult + { + public: + AWS_MAILMANAGER_API StartArchiveExportResult(); + AWS_MAILMANAGER_API StartArchiveExportResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API StartArchiveExportResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique identifier for the initiated export job.

    + */ + inline const Aws::String& GetExportId() const{ return m_exportId; } + + /** + *

    The unique identifier for the initiated export job.

    + */ + inline void SetExportId(const Aws::String& value) { m_exportId = value; } + + /** + *

    The unique identifier for the initiated export job.

    + */ + inline void SetExportId(Aws::String&& value) { m_exportId = std::move(value); } + + /** + *

    The unique identifier for the initiated export job.

    + */ + inline void SetExportId(const char* value) { m_exportId.assign(value); } + + /** + *

    The unique identifier for the initiated export job.

    + */ + inline StartArchiveExportResult& WithExportId(const Aws::String& value) { SetExportId(value); return *this;} + + /** + *

    The unique identifier for the initiated export job.

    + */ + inline StartArchiveExportResult& WithExportId(Aws::String&& value) { SetExportId(std::move(value)); return *this;} + + /** + *

    The unique identifier for the initiated export job.

    + */ + inline StartArchiveExportResult& WithExportId(const char* value) { SetExportId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline StartArchiveExportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline StartArchiveExportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline StartArchiveExportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_exportId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveSearchRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveSearchRequest.h new file mode 100644 index 00000000000..c433188516d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveSearchRequest.h @@ -0,0 +1,217 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to initiate a search across emails in an archive.

    See + * Also:

    AWS + * API Reference

    + */ + class StartArchiveSearchRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API StartArchiveSearchRequest(); + + // 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 "StartArchiveSearch"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the archive to search emails in.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive to search emails in.

    + */ + inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; } + + /** + *

    The identifier of the archive to search emails in.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; } + + /** + *

    The identifier of the archive to search emails in.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive to search emails in.

    + */ + inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); } + + /** + *

    The identifier of the archive to search emails in.

    + */ + inline StartArchiveSearchRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive to search emails in.

    + */ + inline StartArchiveSearchRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive to search emails in.

    + */ + inline StartArchiveSearchRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    Criteria to filter which emails are included in the search results.

    + */ + inline const ArchiveFilters& GetFilters() const{ return m_filters; } + + /** + *

    Criteria to filter which emails are included in the search results.

    + */ + inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } + + /** + *

    Criteria to filter which emails are included in the search results.

    + */ + inline void SetFilters(const ArchiveFilters& value) { m_filtersHasBeenSet = true; m_filters = value; } + + /** + *

    Criteria to filter which emails are included in the search results.

    + */ + inline void SetFilters(ArchiveFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } + + /** + *

    Criteria to filter which emails are included in the search results.

    + */ + inline StartArchiveSearchRequest& WithFilters(const ArchiveFilters& value) { SetFilters(value); return *this;} + + /** + *

    Criteria to filter which emails are included in the search results.

    + */ + inline StartArchiveSearchRequest& WithFilters(ArchiveFilters&& value) { SetFilters(std::move(value)); return *this;} + + + /** + *

    The start timestamp of the range to search emails from.

    + */ + inline const Aws::Utils::DateTime& GetFromTimestamp() const{ return m_fromTimestamp; } + + /** + *

    The start timestamp of the range to search emails from.

    + */ + inline bool FromTimestampHasBeenSet() const { return m_fromTimestampHasBeenSet; } + + /** + *

    The start timestamp of the range to search emails from.

    + */ + inline void SetFromTimestamp(const Aws::Utils::DateTime& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = value; } + + /** + *

    The start timestamp of the range to search emails from.

    + */ + inline void SetFromTimestamp(Aws::Utils::DateTime&& value) { m_fromTimestampHasBeenSet = true; m_fromTimestamp = std::move(value); } + + /** + *

    The start timestamp of the range to search emails from.

    + */ + inline StartArchiveSearchRequest& WithFromTimestamp(const Aws::Utils::DateTime& value) { SetFromTimestamp(value); return *this;} + + /** + *

    The start timestamp of the range to search emails from.

    + */ + inline StartArchiveSearchRequest& WithFromTimestamp(Aws::Utils::DateTime&& value) { SetFromTimestamp(std::move(value)); return *this;} + + + /** + *

    The maximum number of search results to return.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *

    The maximum number of search results to return.

    + */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *

    The maximum number of search results to return.

    + */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *

    The maximum number of search results to return.

    + */ + inline StartArchiveSearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *

    The end timestamp of the range to search emails from.

    + */ + inline const Aws::Utils::DateTime& GetToTimestamp() const{ return m_toTimestamp; } + + /** + *

    The end timestamp of the range to search emails from.

    + */ + inline bool ToTimestampHasBeenSet() const { return m_toTimestampHasBeenSet; } + + /** + *

    The end timestamp of the range to search emails from.

    + */ + inline void SetToTimestamp(const Aws::Utils::DateTime& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = value; } + + /** + *

    The end timestamp of the range to search emails from.

    + */ + inline void SetToTimestamp(Aws::Utils::DateTime&& value) { m_toTimestampHasBeenSet = true; m_toTimestamp = std::move(value); } + + /** + *

    The end timestamp of the range to search emails from.

    + */ + inline StartArchiveSearchRequest& WithToTimestamp(const Aws::Utils::DateTime& value) { SetToTimestamp(value); return *this;} + + /** + *

    The end timestamp of the range to search emails from.

    + */ + inline StartArchiveSearchRequest& WithToTimestamp(Aws::Utils::DateTime&& value) { SetToTimestamp(std::move(value)); return *this;} + + private: + + Aws::String m_archiveId; + bool m_archiveIdHasBeenSet = false; + + ArchiveFilters m_filters; + bool m_filtersHasBeenSet = false; + + Aws::Utils::DateTime m_fromTimestamp; + bool m_fromTimestampHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::Utils::DateTime m_toTimestamp; + bool m_toTimestampHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveSearchResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveSearchResult.h new file mode 100644 index 00000000000..ba21f341a29 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StartArchiveSearchResult.h @@ -0,0 +1,106 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response from initiating an archive search.

    See Also:

    AWS + * API Reference

    + */ + class StartArchiveSearchResult + { + public: + AWS_MAILMANAGER_API StartArchiveSearchResult(); + AWS_MAILMANAGER_API StartArchiveSearchResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API StartArchiveSearchResult& operator=(const Aws::AmazonWebServiceResult& result); + + + /** + *

    The unique identifier for the initiated search job.

    + */ + inline const Aws::String& GetSearchId() const{ return m_searchId; } + + /** + *

    The unique identifier for the initiated search job.

    + */ + inline void SetSearchId(const Aws::String& value) { m_searchId = value; } + + /** + *

    The unique identifier for the initiated search job.

    + */ + inline void SetSearchId(Aws::String&& value) { m_searchId = std::move(value); } + + /** + *

    The unique identifier for the initiated search job.

    + */ + inline void SetSearchId(const char* value) { m_searchId.assign(value); } + + /** + *

    The unique identifier for the initiated search job.

    + */ + inline StartArchiveSearchResult& WithSearchId(const Aws::String& value) { SetSearchId(value); return *this;} + + /** + *

    The unique identifier for the initiated search job.

    + */ + inline StartArchiveSearchResult& WithSearchId(Aws::String&& value) { SetSearchId(std::move(value)); return *this;} + + /** + *

    The unique identifier for the initiated search job.

    + */ + inline StartArchiveSearchResult& WithSearchId(const char* value) { SetSearchId(value); return *this;} + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline StartArchiveSearchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline StartArchiveSearchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline StartArchiveSearchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_searchId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveExportRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveExportRequest.h new file mode 100644 index 00000000000..c4c5ce223bb --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveExportRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to stop an in-progress archive export job.

    See + * Also:

    AWS + * API Reference

    + */ + class StopArchiveExportRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API StopArchiveExportRequest(); + + // 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 "StopArchiveExport"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the export job to stop.

    + */ + inline const Aws::String& GetExportId() const{ return m_exportId; } + + /** + *

    The identifier of the export job to stop.

    + */ + inline bool ExportIdHasBeenSet() const { return m_exportIdHasBeenSet; } + + /** + *

    The identifier of the export job to stop.

    + */ + inline void SetExportId(const Aws::String& value) { m_exportIdHasBeenSet = true; m_exportId = value; } + + /** + *

    The identifier of the export job to stop.

    + */ + inline void SetExportId(Aws::String&& value) { m_exportIdHasBeenSet = true; m_exportId = std::move(value); } + + /** + *

    The identifier of the export job to stop.

    + */ + inline void SetExportId(const char* value) { m_exportIdHasBeenSet = true; m_exportId.assign(value); } + + /** + *

    The identifier of the export job to stop.

    + */ + inline StopArchiveExportRequest& WithExportId(const Aws::String& value) { SetExportId(value); return *this;} + + /** + *

    The identifier of the export job to stop.

    + */ + inline StopArchiveExportRequest& WithExportId(Aws::String&& value) { SetExportId(std::move(value)); return *this;} + + /** + *

    The identifier of the export job to stop.

    + */ + inline StopArchiveExportRequest& WithExportId(const char* value) { SetExportId(value); return *this;} + + private: + + Aws::String m_exportId; + bool m_exportIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveExportResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveExportResult.h new file mode 100644 index 00000000000..ffbd0b5d05c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveExportResult.h @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response indicating if the request to stop the export job succeeded.

    + *

    On success, returns an HTTP 200 status code. On failure, returns an error + * message.

    See Also:

    AWS + * API Reference

    + */ + class StopArchiveExportResult + { + public: + AWS_MAILMANAGER_API StopArchiveExportResult(); + AWS_MAILMANAGER_API StopArchiveExportResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API StopArchiveExportResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline StopArchiveExportResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline StopArchiveExportResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline StopArchiveExportResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveSearchRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveSearchRequest.h new file mode 100644 index 00000000000..caf208b701f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveSearchRequest.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to stop an in-progress archive search job.

    See + * Also:

    AWS + * API Reference

    + */ + class StopArchiveSearchRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API StopArchiveSearchRequest(); + + // 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 "StopArchiveSearch"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the search job to stop.

    + */ + inline const Aws::String& GetSearchId() const{ return m_searchId; } + + /** + *

    The identifier of the search job to stop.

    + */ + inline bool SearchIdHasBeenSet() const { return m_searchIdHasBeenSet; } + + /** + *

    The identifier of the search job to stop.

    + */ + inline void SetSearchId(const Aws::String& value) { m_searchIdHasBeenSet = true; m_searchId = value; } + + /** + *

    The identifier of the search job to stop.

    + */ + inline void SetSearchId(Aws::String&& value) { m_searchIdHasBeenSet = true; m_searchId = std::move(value); } + + /** + *

    The identifier of the search job to stop.

    + */ + inline void SetSearchId(const char* value) { m_searchIdHasBeenSet = true; m_searchId.assign(value); } + + /** + *

    The identifier of the search job to stop.

    + */ + inline StopArchiveSearchRequest& WithSearchId(const Aws::String& value) { SetSearchId(value); return *this;} + + /** + *

    The identifier of the search job to stop.

    + */ + inline StopArchiveSearchRequest& WithSearchId(Aws::String&& value) { SetSearchId(std::move(value)); return *this;} + + /** + *

    The identifier of the search job to stop.

    + */ + inline StopArchiveSearchRequest& WithSearchId(const char* value) { SetSearchId(value); return *this;} + + private: + + Aws::String m_searchId; + bool m_searchIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveSearchResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveSearchResult.h new file mode 100644 index 00000000000..09083dc5a3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/StopArchiveSearchResult.h @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response indicating if the request to stop the search job succeeded.

    + *

    On success, returns an HTTP 200 status code. On failure, returns an error + * message.

    See Also:

    AWS + * API Reference

    + */ + class StopArchiveSearchResult + { + public: + AWS_MAILMANAGER_API StopArchiveSearchResult(); + AWS_MAILMANAGER_API StopArchiveSearchResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API StopArchiveSearchResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline StopArchiveSearchResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline StopArchiveSearchResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline StopArchiveSearchResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Tag.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Tag.h new file mode 100644 index 00000000000..b1376b4c238 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/Tag.h @@ -0,0 +1,133 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    A key-value pair (the value is optional), that you can define and assign to + * Amazon Web Services resources.

    See Also:

    AWS API + * Reference

    + */ + class Tag + { + public: + AWS_MAILMANAGER_API Tag(); + AWS_MAILMANAGER_API Tag(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Tag& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    The key of the key-value tag.

    + */ + inline const Aws::String& GetKey() const{ return m_key; } + + /** + *

    The key of the key-value tag.

    + */ + inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } + + /** + *

    The key of the key-value tag.

    + */ + inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } + + /** + *

    The key of the key-value tag.

    + */ + inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } + + /** + *

    The key of the key-value tag.

    + */ + inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } + + /** + *

    The key of the key-value tag.

    + */ + inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;} + + /** + *

    The key of the key-value tag.

    + */ + inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} + + /** + *

    The key of the key-value tag.

    + */ + inline Tag& WithKey(const char* value) { SetKey(value); return *this;} + + + /** + *

    The value of the key-value tag.

    + */ + inline const Aws::String& GetValue() const{ return m_value; } + + /** + *

    The value of the key-value tag.

    + */ + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + + /** + *

    The value of the key-value tag.

    + */ + inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } + + /** + *

    The value of the key-value tag.

    + */ + inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + + /** + *

    The value of the key-value tag.

    + */ + inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } + + /** + *

    The value of the key-value tag.

    + */ + inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;} + + /** + *

    The value of the key-value tag.

    + */ + inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} + + /** + *

    The value of the key-value tag.

    + */ + inline Tag& WithValue(const char* value) { SetValue(value); return *this;} + + private: + + Aws::String m_key; + bool m_keyHasBeenSet = false; + + Aws::String m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TagResourceRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TagResourceRequest.h new file mode 100644 index 00000000000..d73a3c0b15e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TagResourceRequest.h @@ -0,0 +1,139 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class TagResourceRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API 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_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    + */ + inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    + */ + inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    + */ + inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline const Aws::Vector& GetTags() const{ return m_tags; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline TagResourceRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline TagResourceRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } + + /** + *

    The tags used to organize, track, or control access for the resource. For + * example, { "tags": {"key1":"value1", "key2":"value2"} }.

    + */ + 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 = false; + + Aws::Vector m_tags; + bool m_tagsHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TagResourceResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TagResourceResult.h new file mode 100644 index 00000000000..ff59efe3eab --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TagResourceResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class TagResourceResult + { + public: + AWS_MAILMANAGER_API TagResourceResult(); + AWS_MAILMANAGER_API TagResourceResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API TagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline TagResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline TagResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline TagResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TrafficPolicy.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TrafficPolicy.h new file mode 100644 index 00000000000..faa7b71e404 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/TrafficPolicy.h @@ -0,0 +1,180 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + + /** + *

    The structure of a traffic policy resource which is a container for policy + * statements.

    See Also:

    AWS + * API Reference

    + */ + class TrafficPolicy + { + public: + AWS_MAILMANAGER_API TrafficPolicy(); + AWS_MAILMANAGER_API TrafficPolicy(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API TrafficPolicy& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; + + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline const AcceptAction& GetDefaultAction() const{ return m_defaultAction; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline void SetDefaultAction(const AcceptAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline void SetDefaultAction(AcceptAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline TrafficPolicy& WithDefaultAction(const AcceptAction& value) { SetDefaultAction(value); return *this;} + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline TrafficPolicy& WithDefaultAction(AcceptAction&& value) { SetDefaultAction(std::move(value)); return *this;} + + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline TrafficPolicy& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline TrafficPolicy& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of the traffic policy resource.

    + */ + inline TrafficPolicy& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + + /** + *

    A user-friendly name of the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyName() const{ return m_trafficPolicyName; } + + /** + *

    A user-friendly name of the traffic policy resource.

    + */ + inline bool TrafficPolicyNameHasBeenSet() const { return m_trafficPolicyNameHasBeenSet; } + + /** + *

    A user-friendly name of the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(const Aws::String& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = value; } + + /** + *

    A user-friendly name of the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(Aws::String&& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = std::move(value); } + + /** + *

    A user-friendly name of the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(const char* value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName.assign(value); } + + /** + *

    A user-friendly name of the traffic policy resource.

    + */ + inline TrafficPolicy& WithTrafficPolicyName(const Aws::String& value) { SetTrafficPolicyName(value); return *this;} + + /** + *

    A user-friendly name of the traffic policy resource.

    + */ + inline TrafficPolicy& WithTrafficPolicyName(Aws::String&& value) { SetTrafficPolicyName(std::move(value)); return *this;} + + /** + *

    A user-friendly name of the traffic policy resource.

    + */ + inline TrafficPolicy& WithTrafficPolicyName(const char* value) { SetTrafficPolicyName(value); return *this;} + + private: + + AcceptAction m_defaultAction; + bool m_defaultActionHasBeenSet = false; + + Aws::String m_trafficPolicyId; + bool m_trafficPolicyIdHasBeenSet = false; + + Aws::String m_trafficPolicyName; + bool m_trafficPolicyNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UntagResourceRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UntagResourceRequest.h new file mode 100644 index 00000000000..10763e9ecb2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UntagResourceRequest.h @@ -0,0 +1,144 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class UntagResourceRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API 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_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    + */ + inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    + */ + inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    + */ + inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    + */ + inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    + */ + inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    + */ + inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    + */ + inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} + + /** + *

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    + */ + inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} + + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline const Aws::Vector& GetTagKeys() const{ return m_tagKeys; } + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; } + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline void SetTagKeys(const Aws::Vector& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; } + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline void SetTagKeys(Aws::Vector&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); } + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline UntagResourceRequest& WithTagKeys(const Aws::Vector& value) { SetTagKeys(value); return *this;} + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline UntagResourceRequest& WithTagKeys(Aws::Vector&& value) { SetTagKeys(std::move(value)); return *this;} + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; } + + /** + *

    The keys of the key-value pairs for the tag or tags you want to remove from + * the specified resource.

    + */ + inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; } + + private: + + Aws::String m_resourceArn; + bool m_resourceArnHasBeenSet = false; + + Aws::Vector m_tagKeys; + bool m_tagKeysHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UntagResourceResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UntagResourceResult.h new file mode 100644 index 00000000000..b967c9b5293 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UntagResourceResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class UntagResourceResult + { + public: + AWS_MAILMANAGER_API UntagResourceResult(); + AWS_MAILMANAGER_API UntagResourceResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API UntagResourceResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline UntagResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UntagResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UntagResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateArchiveRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateArchiveRequest.h new file mode 100644 index 00000000000..b89d60ec234 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateArchiveRequest.h @@ -0,0 +1,168 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + *

    The request to update properties of an existing email archive.

    See + * Also:

    AWS + * API Reference

    + */ + class UpdateArchiveRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API UpdateArchiveRequest(); + + // 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 "UpdateArchive"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of the archive to update.

    + */ + inline const Aws::String& GetArchiveId() const{ return m_archiveId; } + + /** + *

    The identifier of the archive to update.

    + */ + inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; } + + /** + *

    The identifier of the archive to update.

    + */ + inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; } + + /** + *

    The identifier of the archive to update.

    + */ + inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); } + + /** + *

    The identifier of the archive to update.

    + */ + inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); } + + /** + *

    The identifier of the archive to update.

    + */ + inline UpdateArchiveRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;} + + /** + *

    The identifier of the archive to update.

    + */ + inline UpdateArchiveRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;} + + /** + *

    The identifier of the archive to update.

    + */ + inline UpdateArchiveRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;} + + + /** + *

    A new, unique name for the archive.

    + */ + inline const Aws::String& GetArchiveName() const{ return m_archiveName; } + + /** + *

    A new, unique name for the archive.

    + */ + inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; } + + /** + *

    A new, unique name for the archive.

    + */ + inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; } + + /** + *

    A new, unique name for the archive.

    + */ + inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); } + + /** + *

    A new, unique name for the archive.

    + */ + inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); } + + /** + *

    A new, unique name for the archive.

    + */ + inline UpdateArchiveRequest& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;} + + /** + *

    A new, unique name for the archive.

    + */ + inline UpdateArchiveRequest& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;} + + /** + *

    A new, unique name for the archive.

    + */ + inline UpdateArchiveRequest& WithArchiveName(const char* value) { SetArchiveName(value); return *this;} + + + /** + *

    A new retention period for emails in the archive.

    + */ + inline const ArchiveRetention& GetRetention() const{ return m_retention; } + + /** + *

    A new retention period for emails in the archive.

    + */ + inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; } + + /** + *

    A new retention period for emails in the archive.

    + */ + inline void SetRetention(const ArchiveRetention& value) { m_retentionHasBeenSet = true; m_retention = value; } + + /** + *

    A new retention period for emails in the archive.

    + */ + inline void SetRetention(ArchiveRetention&& value) { m_retentionHasBeenSet = true; m_retention = std::move(value); } + + /** + *

    A new retention period for emails in the archive.

    + */ + inline UpdateArchiveRequest& WithRetention(const ArchiveRetention& value) { SetRetention(value); return *this;} + + /** + *

    A new retention period for emails in the archive.

    + */ + inline UpdateArchiveRequest& WithRetention(ArchiveRetention&& value) { SetRetention(std::move(value)); return *this;} + + private: + + Aws::String m_archiveId; + bool m_archiveIdHasBeenSet = false; + + Aws::String m_archiveName; + bool m_archiveNameHasBeenSet = false; + + ArchiveRetention m_retention; + bool m_retentionHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateArchiveResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateArchiveResult.h new file mode 100644 index 00000000000..1770d6d3819 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateArchiveResult.h @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + /** + *

    The response indicating if the archive update succeeded or failed.

    On + * success, returns an HTTP 200 status code. On failure, returns an error + * message.

    See Also:

    AWS + * API Reference

    + */ + class UpdateArchiveResult + { + public: + AWS_MAILMANAGER_API UpdateArchiveResult(); + AWS_MAILMANAGER_API UpdateArchiveResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API UpdateArchiveResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline UpdateArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UpdateArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UpdateArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateIngressPointRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateIngressPointRequest.h new file mode 100644 index 00000000000..ad6bc5339a9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateIngressPointRequest.h @@ -0,0 +1,309 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class UpdateIngressPointRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API UpdateIngressPointRequest(); + + // 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 "UpdateIngressPoint"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline const IngressPointConfiguration& GetIngressPointConfiguration() const{ return m_ingressPointConfiguration; } + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline bool IngressPointConfigurationHasBeenSet() const { return m_ingressPointConfigurationHasBeenSet; } + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline void SetIngressPointConfiguration(const IngressPointConfiguration& value) { m_ingressPointConfigurationHasBeenSet = true; m_ingressPointConfiguration = value; } + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline void SetIngressPointConfiguration(IngressPointConfiguration&& value) { m_ingressPointConfigurationHasBeenSet = true; m_ingressPointConfiguration = std::move(value); } + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline UpdateIngressPointRequest& WithIngressPointConfiguration(const IngressPointConfiguration& value) { SetIngressPointConfiguration(value); return *this;} + + /** + *

    If you choose an Authenticated ingress endpoint, you must configure either an + * SMTP password or a secret ARN.

    + */ + inline UpdateIngressPointRequest& WithIngressPointConfiguration(IngressPointConfiguration&& value) { SetIngressPointConfiguration(std::move(value)); return *this;} + + + /** + *

    The identifier for the ingress endpoint you want to update.

    + */ + inline const Aws::String& GetIngressPointId() const{ return m_ingressPointId; } + + /** + *

    The identifier for the ingress endpoint you want to update.

    + */ + inline bool IngressPointIdHasBeenSet() const { return m_ingressPointIdHasBeenSet; } + + /** + *

    The identifier for the ingress endpoint you want to update.

    + */ + inline void SetIngressPointId(const Aws::String& value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId = value; } + + /** + *

    The identifier for the ingress endpoint you want to update.

    + */ + inline void SetIngressPointId(Aws::String&& value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId = std::move(value); } + + /** + *

    The identifier for the ingress endpoint you want to update.

    + */ + inline void SetIngressPointId(const char* value) { m_ingressPointIdHasBeenSet = true; m_ingressPointId.assign(value); } + + /** + *

    The identifier for the ingress endpoint you want to update.

    + */ + inline UpdateIngressPointRequest& WithIngressPointId(const Aws::String& value) { SetIngressPointId(value); return *this;} + + /** + *

    The identifier for the ingress endpoint you want to update.

    + */ + inline UpdateIngressPointRequest& WithIngressPointId(Aws::String&& value) { SetIngressPointId(std::move(value)); return *this;} + + /** + *

    The identifier for the ingress endpoint you want to update.

    + */ + inline UpdateIngressPointRequest& WithIngressPointId(const char* value) { SetIngressPointId(value); return *this;} + + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline const Aws::String& GetIngressPointName() const{ return m_ingressPointName; } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline bool IngressPointNameHasBeenSet() const { return m_ingressPointNameHasBeenSet; } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline void SetIngressPointName(const Aws::String& value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName = value; } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline void SetIngressPointName(Aws::String&& value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName = std::move(value); } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline void SetIngressPointName(const char* value) { m_ingressPointNameHasBeenSet = true; m_ingressPointName.assign(value); } + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline UpdateIngressPointRequest& WithIngressPointName(const Aws::String& value) { SetIngressPointName(value); return *this;} + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline UpdateIngressPointRequest& WithIngressPointName(Aws::String&& value) { SetIngressPointName(std::move(value)); return *this;} + + /** + *

    A user friendly name for the ingress endpoint resource.

    + */ + inline UpdateIngressPointRequest& WithIngressPointName(const char* value) { SetIngressPointName(value); return *this;} + + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = value; } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::move(value); } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId.assign(value); } + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline UpdateIngressPointRequest& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline UpdateIngressPointRequest& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of an existing rule set that you attach to an ingress endpoint + * resource.

    + */ + inline UpdateIngressPointRequest& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + + /** + *

    The update status of an ingress endpoint.

    + */ + inline const IngressPointStatusToUpdate& GetStatusToUpdate() const{ return m_statusToUpdate; } + + /** + *

    The update status of an ingress endpoint.

    + */ + inline bool StatusToUpdateHasBeenSet() const { return m_statusToUpdateHasBeenSet; } + + /** + *

    The update status of an ingress endpoint.

    + */ + inline void SetStatusToUpdate(const IngressPointStatusToUpdate& value) { m_statusToUpdateHasBeenSet = true; m_statusToUpdate = value; } + + /** + *

    The update status of an ingress endpoint.

    + */ + inline void SetStatusToUpdate(IngressPointStatusToUpdate&& value) { m_statusToUpdateHasBeenSet = true; m_statusToUpdate = std::move(value); } + + /** + *

    The update status of an ingress endpoint.

    + */ + inline UpdateIngressPointRequest& WithStatusToUpdate(const IngressPointStatusToUpdate& value) { SetStatusToUpdate(value); return *this;} + + /** + *

    The update status of an ingress endpoint.

    + */ + inline UpdateIngressPointRequest& WithStatusToUpdate(IngressPointStatusToUpdate&& value) { SetStatusToUpdate(std::move(value)); return *this;} + + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline UpdateIngressPointRequest& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline UpdateIngressPointRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of an existing traffic policy that you attach to an ingress + * endpoint resource.

    + */ + inline UpdateIngressPointRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + private: + + IngressPointConfiguration m_ingressPointConfiguration; + bool m_ingressPointConfigurationHasBeenSet = false; + + Aws::String m_ingressPointId; + bool m_ingressPointIdHasBeenSet = false; + + Aws::String m_ingressPointName; + bool m_ingressPointNameHasBeenSet = false; + + Aws::String m_ruleSetId; + bool m_ruleSetIdHasBeenSet = false; + + IngressPointStatusToUpdate m_statusToUpdate; + bool m_statusToUpdateHasBeenSet = false; + + Aws::String m_trafficPolicyId; + bool m_trafficPolicyIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateIngressPointResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateIngressPointResult.h new file mode 100644 index 00000000000..5169366bf67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateIngressPointResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class UpdateIngressPointResult + { + public: + AWS_MAILMANAGER_API UpdateIngressPointResult(); + AWS_MAILMANAGER_API UpdateIngressPointResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API UpdateIngressPointResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline UpdateIngressPointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UpdateIngressPointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UpdateIngressPointResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRelayRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRelayRequest.h new file mode 100644 index 00000000000..3bfa7b67c6c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRelayRequest.h @@ -0,0 +1,238 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class UpdateRelayRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API UpdateRelayRequest(); + + // 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 "UpdateRelay"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline const RelayAuthentication& GetAuthentication() const{ return m_authentication; } + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; } + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline void SetAuthentication(const RelayAuthentication& value) { m_authenticationHasBeenSet = true; m_authentication = value; } + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline void SetAuthentication(RelayAuthentication&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); } + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline UpdateRelayRequest& WithAuthentication(const RelayAuthentication& value) { SetAuthentication(value); return *this;} + + /** + *

    Authentication for the relay destination server—specify the secretARN where + * the SMTP credentials are stored.

    + */ + inline UpdateRelayRequest& WithAuthentication(RelayAuthentication&& value) { SetAuthentication(std::move(value)); return *this;} + + + /** + *

    The unique relay identifier.

    + */ + inline const Aws::String& GetRelayId() const{ return m_relayId; } + + /** + *

    The unique relay identifier.

    + */ + inline bool RelayIdHasBeenSet() const { return m_relayIdHasBeenSet; } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(const Aws::String& value) { m_relayIdHasBeenSet = true; m_relayId = value; } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(Aws::String&& value) { m_relayIdHasBeenSet = true; m_relayId = std::move(value); } + + /** + *

    The unique relay identifier.

    + */ + inline void SetRelayId(const char* value) { m_relayIdHasBeenSet = true; m_relayId.assign(value); } + + /** + *

    The unique relay identifier.

    + */ + inline UpdateRelayRequest& WithRelayId(const Aws::String& value) { SetRelayId(value); return *this;} + + /** + *

    The unique relay identifier.

    + */ + inline UpdateRelayRequest& WithRelayId(Aws::String&& value) { SetRelayId(std::move(value)); return *this;} + + /** + *

    The unique relay identifier.

    + */ + inline UpdateRelayRequest& WithRelayId(const char* value) { SetRelayId(value); return *this;} + + + /** + *

    The name of the relay resource.

    + */ + inline const Aws::String& GetRelayName() const{ return m_relayName; } + + /** + *

    The name of the relay resource.

    + */ + inline bool RelayNameHasBeenSet() const { return m_relayNameHasBeenSet; } + + /** + *

    The name of the relay resource.

    + */ + inline void SetRelayName(const Aws::String& value) { m_relayNameHasBeenSet = true; m_relayName = value; } + + /** + *

    The name of the relay resource.

    + */ + inline void SetRelayName(Aws::String&& value) { m_relayNameHasBeenSet = true; m_relayName = std::move(value); } + + /** + *

    The name of the relay resource.

    + */ + inline void SetRelayName(const char* value) { m_relayNameHasBeenSet = true; m_relayName.assign(value); } + + /** + *

    The name of the relay resource.

    + */ + inline UpdateRelayRequest& WithRelayName(const Aws::String& value) { SetRelayName(value); return *this;} + + /** + *

    The name of the relay resource.

    + */ + inline UpdateRelayRequest& WithRelayName(Aws::String&& value) { SetRelayName(std::move(value)); return *this;} + + /** + *

    The name of the relay resource.

    + */ + inline UpdateRelayRequest& WithRelayName(const char* value) { SetRelayName(value); return *this;} + + + /** + *

    The destination relay server address.

    + */ + inline const Aws::String& GetServerName() const{ return m_serverName; } + + /** + *

    The destination relay server address.

    + */ + inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); } + + /** + *

    The destination relay server address.

    + */ + inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); } + + /** + *

    The destination relay server address.

    + */ + inline UpdateRelayRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;} + + /** + *

    The destination relay server address.

    + */ + inline UpdateRelayRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;} + + /** + *

    The destination relay server address.

    + */ + inline UpdateRelayRequest& WithServerName(const char* value) { SetServerName(value); return *this;} + + + /** + *

    The destination relay server port.

    + */ + inline int GetServerPort() const{ return m_serverPort; } + + /** + *

    The destination relay server port.

    + */ + inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; } + + /** + *

    The destination relay server port.

    + */ + inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; } + + /** + *

    The destination relay server port.

    + */ + inline UpdateRelayRequest& WithServerPort(int value) { SetServerPort(value); return *this;} + + private: + + RelayAuthentication m_authentication; + bool m_authenticationHasBeenSet = false; + + Aws::String m_relayId; + bool m_relayIdHasBeenSet = false; + + Aws::String m_relayName; + bool m_relayNameHasBeenSet = false; + + Aws::String m_serverName; + bool m_serverNameHasBeenSet = false; + + int m_serverPort; + bool m_serverPortHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRelayResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRelayResult.h new file mode 100644 index 00000000000..c5a43a19717 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRelayResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class UpdateRelayResult + { + public: + AWS_MAILMANAGER_API UpdateRelayResult(); + AWS_MAILMANAGER_API UpdateRelayResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API UpdateRelayResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline UpdateRelayResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UpdateRelayResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UpdateRelayResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRuleSetRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRuleSetRequest.h new file mode 100644 index 00000000000..e670a8ce7d2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRuleSetRequest.h @@ -0,0 +1,183 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class UpdateRuleSetRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API UpdateRuleSetRequest(); + + // 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 "UpdateRuleSet"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    The identifier of a rule set you want to update.

    + */ + inline const Aws::String& GetRuleSetId() const{ return m_ruleSetId; } + + /** + *

    The identifier of a rule set you want to update.

    + */ + inline bool RuleSetIdHasBeenSet() const { return m_ruleSetIdHasBeenSet; } + + /** + *

    The identifier of a rule set you want to update.

    + */ + inline void SetRuleSetId(const Aws::String& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = value; } + + /** + *

    The identifier of a rule set you want to update.

    + */ + inline void SetRuleSetId(Aws::String&& value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId = std::move(value); } + + /** + *

    The identifier of a rule set you want to update.

    + */ + inline void SetRuleSetId(const char* value) { m_ruleSetIdHasBeenSet = true; m_ruleSetId.assign(value); } + + /** + *

    The identifier of a rule set you want to update.

    + */ + inline UpdateRuleSetRequest& WithRuleSetId(const Aws::String& value) { SetRuleSetId(value); return *this;} + + /** + *

    The identifier of a rule set you want to update.

    + */ + inline UpdateRuleSetRequest& WithRuleSetId(Aws::String&& value) { SetRuleSetId(std::move(value)); return *this;} + + /** + *

    The identifier of a rule set you want to update.

    + */ + inline UpdateRuleSetRequest& WithRuleSetId(const char* value) { SetRuleSetId(value); return *this;} + + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); } + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline UpdateRuleSetRequest& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;} + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline UpdateRuleSetRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;} + + /** + *

    A user-friendly name for the rule set resource.

    + */ + inline UpdateRuleSetRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;} + + + /** + *

    A new set of rules to replace the current rules of the rule set—these rules + * will override all the rules of the rule set.

    + */ + inline const Aws::Vector& GetRules() const{ return m_rules; } + + /** + *

    A new set of rules to replace the current rules of the rule set—these rules + * will override all the rules of the rule set.

    + */ + inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; } + + /** + *

    A new set of rules to replace the current rules of the rule set—these rules + * will override all the rules of the rule set.

    + */ + inline void SetRules(const Aws::Vector& value) { m_rulesHasBeenSet = true; m_rules = value; } + + /** + *

    A new set of rules to replace the current rules of the rule set—these rules + * will override all the rules of the rule set.

    + */ + inline void SetRules(Aws::Vector&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); } + + /** + *

    A new set of rules to replace the current rules of the rule set—these rules + * will override all the rules of the rule set.

    + */ + inline UpdateRuleSetRequest& WithRules(const Aws::Vector& value) { SetRules(value); return *this;} + + /** + *

    A new set of rules to replace the current rules of the rule set—these rules + * will override all the rules of the rule set.

    + */ + inline UpdateRuleSetRequest& WithRules(Aws::Vector&& value) { SetRules(std::move(value)); return *this;} + + /** + *

    A new set of rules to replace the current rules of the rule set—these rules + * will override all the rules of the rule set.

    + */ + inline UpdateRuleSetRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; } + + /** + *

    A new set of rules to replace the current rules of the rule set—these rules + * will override all the rules of the rule set.

    + */ + inline UpdateRuleSetRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_ruleSetId; + bool m_ruleSetIdHasBeenSet = false; + + Aws::String m_ruleSetName; + bool m_ruleSetNameHasBeenSet = false; + + Aws::Vector m_rules; + bool m_rulesHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRuleSetResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRuleSetResult.h new file mode 100644 index 00000000000..ad8255f5dbb --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateRuleSetResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class UpdateRuleSetResult + { + public: + AWS_MAILMANAGER_API UpdateRuleSetResult(); + AWS_MAILMANAGER_API UpdateRuleSetResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API UpdateRuleSetResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline UpdateRuleSetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UpdateRuleSetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UpdateRuleSetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateTrafficPolicyRequest.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateTrafficPolicyRequest.h new file mode 100644 index 00000000000..437be223d8c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateTrafficPolicyRequest.h @@ -0,0 +1,250 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + + /** + */ + class UpdateTrafficPolicyRequest : public MailManagerRequest + { + public: + AWS_MAILMANAGER_API UpdateTrafficPolicyRequest(); + + // 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 "UpdateTrafficPolicy"; } + + AWS_MAILMANAGER_API Aws::String SerializePayload() const override; + + AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; + + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline const AcceptAction& GetDefaultAction() const{ return m_defaultAction; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline void SetDefaultAction(const AcceptAction& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline void SetDefaultAction(AcceptAction&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); } + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline UpdateTrafficPolicyRequest& WithDefaultAction(const AcceptAction& value) { SetDefaultAction(value); return *this;} + + /** + *

    Default action instructs the traffic policy to either Allow or Deny (block) + * messages that fall outside of (or not addressed by) the conditions of your + * policy statements

    + */ + inline UpdateTrafficPolicyRequest& WithDefaultAction(AcceptAction&& value) { SetDefaultAction(std::move(value)); return *this;} + + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline int GetMaxMessageSizeBytes() const{ return m_maxMessageSizeBytes; } + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline bool MaxMessageSizeBytesHasBeenSet() const { return m_maxMessageSizeBytesHasBeenSet; } + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline void SetMaxMessageSizeBytes(int value) { m_maxMessageSizeBytesHasBeenSet = true; m_maxMessageSizeBytes = value; } + + /** + *

    The maximum message size in bytes of email which is allowed in by this + * traffic policy—anything larger will be blocked.

    + */ + inline UpdateTrafficPolicyRequest& WithMaxMessageSizeBytes(int value) { SetMaxMessageSizeBytes(value); return *this;} + + + /** + *

    The list of conditions to be updated for filtering email traffic.

    + */ + inline const Aws::Vector& GetPolicyStatements() const{ return m_policyStatements; } + + /** + *

    The list of conditions to be updated for filtering email traffic.

    + */ + inline bool PolicyStatementsHasBeenSet() const { return m_policyStatementsHasBeenSet; } + + /** + *

    The list of conditions to be updated for filtering email traffic.

    + */ + inline void SetPolicyStatements(const Aws::Vector& value) { m_policyStatementsHasBeenSet = true; m_policyStatements = value; } + + /** + *

    The list of conditions to be updated for filtering email traffic.

    + */ + inline void SetPolicyStatements(Aws::Vector&& value) { m_policyStatementsHasBeenSet = true; m_policyStatements = std::move(value); } + + /** + *

    The list of conditions to be updated for filtering email traffic.

    + */ + inline UpdateTrafficPolicyRequest& WithPolicyStatements(const Aws::Vector& value) { SetPolicyStatements(value); return *this;} + + /** + *

    The list of conditions to be updated for filtering email traffic.

    + */ + inline UpdateTrafficPolicyRequest& WithPolicyStatements(Aws::Vector&& value) { SetPolicyStatements(std::move(value)); return *this;} + + /** + *

    The list of conditions to be updated for filtering email traffic.

    + */ + inline UpdateTrafficPolicyRequest& AddPolicyStatements(const PolicyStatement& value) { m_policyStatementsHasBeenSet = true; m_policyStatements.push_back(value); return *this; } + + /** + *

    The list of conditions to be updated for filtering email traffic.

    + */ + inline UpdateTrafficPolicyRequest& AddPolicyStatements(PolicyStatement&& value) { m_policyStatementsHasBeenSet = true; m_policyStatements.push_back(std::move(value)); return *this; } + + + /** + *

    The identifier of the traffic policy that you want to update.

    + */ + inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } + + /** + *

    The identifier of the traffic policy that you want to update.

    + */ + inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; } + + /** + *

    The identifier of the traffic policy that you want to update.

    + */ + inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; } + + /** + *

    The identifier of the traffic policy that you want to update.

    + */ + inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); } + + /** + *

    The identifier of the traffic policy that you want to update.

    + */ + inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); } + + /** + *

    The identifier of the traffic policy that you want to update.

    + */ + inline UpdateTrafficPolicyRequest& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} + + /** + *

    The identifier of the traffic policy that you want to update.

    + */ + inline UpdateTrafficPolicyRequest& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} + + /** + *

    The identifier of the traffic policy that you want to update.

    + */ + inline UpdateTrafficPolicyRequest& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} + + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline const Aws::String& GetTrafficPolicyName() const{ return m_trafficPolicyName; } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline bool TrafficPolicyNameHasBeenSet() const { return m_trafficPolicyNameHasBeenSet; } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(const Aws::String& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = value; } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(Aws::String&& value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName = std::move(value); } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline void SetTrafficPolicyName(const char* value) { m_trafficPolicyNameHasBeenSet = true; m_trafficPolicyName.assign(value); } + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline UpdateTrafficPolicyRequest& WithTrafficPolicyName(const Aws::String& value) { SetTrafficPolicyName(value); return *this;} + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline UpdateTrafficPolicyRequest& WithTrafficPolicyName(Aws::String&& value) { SetTrafficPolicyName(std::move(value)); return *this;} + + /** + *

    A user-friendly name for the traffic policy resource.

    + */ + inline UpdateTrafficPolicyRequest& WithTrafficPolicyName(const char* value) { SetTrafficPolicyName(value); return *this;} + + private: + + AcceptAction m_defaultAction; + bool m_defaultActionHasBeenSet = false; + + int m_maxMessageSizeBytes; + bool m_maxMessageSizeBytesHasBeenSet = false; + + Aws::Vector m_policyStatements; + bool m_policyStatementsHasBeenSet = false; + + Aws::String m_trafficPolicyId; + bool m_trafficPolicyIdHasBeenSet = false; + + Aws::String m_trafficPolicyName; + bool m_trafficPolicyNameHasBeenSet = false; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateTrafficPolicyResult.h b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateTrafficPolicyResult.h new file mode 100644 index 00000000000..597d62fa739 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/include/aws/mailmanager/model/UpdateTrafficPolicyResult.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace MailManager +{ +namespace Model +{ + class UpdateTrafficPolicyResult + { + public: + AWS_MAILMANAGER_API UpdateTrafficPolicyResult(); + AWS_MAILMANAGER_API UpdateTrafficPolicyResult(const Aws::AmazonWebServiceResult& result); + AWS_MAILMANAGER_API UpdateTrafficPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); + + + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + + + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + + + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + + + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + + + inline UpdateTrafficPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + + + inline UpdateTrafficPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + + + inline UpdateTrafficPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerClient.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerClient.cpp new file mode 100644 index 00000000000..fca3e7083e3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerClient.cpp @@ -0,0 +1,1433 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + + +using namespace Aws; +using namespace Aws::Auth; +using namespace Aws::Client; +using namespace Aws::MailManager; +using namespace Aws::MailManager::Model; +using namespace Aws::Http; +using namespace Aws::Utils::Json; +using namespace smithy::components::tracing; +using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + +namespace Aws +{ + namespace MailManager + { + const char SERVICE_NAME[] = "ses"; + const char ALLOCATION_TAG[] = "MailManagerClient"; + } +} +const char* MailManagerClient::GetServiceName() {return SERVICE_NAME;} +const char* MailManagerClient::GetAllocationTag() {return ALLOCATION_TAG;} + +MailManagerClient::MailManagerClient(const MailManager::MailManagerClientConfiguration& clientConfiguration, + std::shared_ptr endpointProvider) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +MailManagerClient::MailManagerClient(const AWSCredentials& credentials, + std::shared_ptr endpointProvider, + const MailManager::MailManagerClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +MailManagerClient::MailManagerClient(const std::shared_ptr& credentialsProvider, + std::shared_ptr endpointProvider, + const MailManager::MailManagerClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + credentialsProvider, + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + + /* Legacy constructors due deprecation */ + MailManagerClient::MailManagerClient(const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +MailManagerClient::MailManagerClient(const AWSCredentials& credentials, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + Aws::MakeShared(ALLOCATION_TAG, credentials), + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + +MailManagerClient::MailManagerClient(const std::shared_ptr& credentialsProvider, + const Client::ClientConfiguration& clientConfiguration) : + BASECLASS(clientConfiguration, + Aws::MakeShared(ALLOCATION_TAG, + credentialsProvider, + SERVICE_NAME, + Aws::Region::ComputeSignerRegion(clientConfiguration.region)), + Aws::MakeShared(ALLOCATION_TAG)), + m_clientConfiguration(clientConfiguration), + m_executor(clientConfiguration.executor), + m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) +{ + init(m_clientConfiguration); +} + + /* End of legacy constructors due deprecation */ +MailManagerClient::~MailManagerClient() +{ + ShutdownSdkClient(this, -1); +} + +std::shared_ptr& MailManagerClient::accessEndpointProvider() +{ + return m_endpointProvider; +} + +void MailManagerClient::init(const MailManager::MailManagerClientConfiguration& config) +{ + AWSClient::SetServiceClientName("MailManager"); + AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); + m_endpointProvider->InitBuiltInParameters(config); +} + +void MailManagerClient::OverrideEndpoint(const Aws::String& endpoint) +{ + AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); + m_endpointProvider->OverrideEndpoint(endpoint); +} + +CreateAddonInstanceOutcome MailManagerClient::CreateAddonInstance(const CreateAddonInstanceRequest& request) const +{ + AWS_OPERATION_GUARD(CreateAddonInstance); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAddonInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAddonInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateAddonInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAddonInstance", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateAddonInstanceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAddonInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateAddonInstanceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateAddonSubscriptionOutcome MailManagerClient::CreateAddonSubscription(const CreateAddonSubscriptionRequest& request) const +{ + AWS_OPERATION_GUARD(CreateAddonSubscription); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAddonSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAddonSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateAddonSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAddonSubscription", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateAddonSubscriptionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAddonSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateAddonSubscriptionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateArchiveOutcome MailManagerClient::CreateArchive(const CreateArchiveRequest& request) const +{ + AWS_OPERATION_GUARD(CreateArchive); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateArchive, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateArchive, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateArchive, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateArchive", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateArchiveOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateArchive, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateArchiveOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateIngressPointOutcome MailManagerClient::CreateIngressPoint(const CreateIngressPointRequest& request) const +{ + AWS_OPERATION_GUARD(CreateIngressPoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateIngressPoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateIngressPoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateIngressPoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateIngressPoint", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateIngressPointOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateIngressPoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateIngressPointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateRelayOutcome MailManagerClient::CreateRelay(const CreateRelayRequest& request) const +{ + AWS_OPERATION_GUARD(CreateRelay); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateRelay, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateRelay, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateRelay, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateRelay", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateRelayOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateRelay, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateRelayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateRuleSetOutcome MailManagerClient::CreateRuleSet(const CreateRuleSetRequest& request) const +{ + AWS_OPERATION_GUARD(CreateRuleSet); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateRuleSet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateRuleSet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateRuleSet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateRuleSet", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateRuleSetOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateRuleSet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateRuleSetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateTrafficPolicyOutcome MailManagerClient::CreateTrafficPolicy(const CreateTrafficPolicyRequest& request) const +{ + AWS_OPERATION_GUARD(CreateTrafficPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateTrafficPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateTrafficPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateTrafficPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateTrafficPolicy", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateTrafficPolicyOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateTrafficPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return CreateTrafficPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteAddonInstanceOutcome MailManagerClient::DeleteAddonInstance(const DeleteAddonInstanceRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteAddonInstance); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAddonInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAddonInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAddonInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAddonInstance", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteAddonInstanceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAddonInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteAddonInstanceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteAddonSubscriptionOutcome MailManagerClient::DeleteAddonSubscription(const DeleteAddonSubscriptionRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteAddonSubscription); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAddonSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAddonSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAddonSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAddonSubscription", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteAddonSubscriptionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAddonSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteAddonSubscriptionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteArchiveOutcome MailManagerClient::DeleteArchive(const DeleteArchiveRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteArchive); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteArchive, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteArchive, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteArchive, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteArchive", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteArchiveOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteArchive, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteArchiveOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteIngressPointOutcome MailManagerClient::DeleteIngressPoint(const DeleteIngressPointRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteIngressPoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteIngressPoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteIngressPoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteIngressPoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteIngressPoint", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteIngressPointOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteIngressPoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteIngressPointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteRelayOutcome MailManagerClient::DeleteRelay(const DeleteRelayRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteRelay); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRelay, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRelay, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteRelay, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRelay", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteRelayOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRelay, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteRelayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteRuleSetOutcome MailManagerClient::DeleteRuleSet(const DeleteRuleSetRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteRuleSet); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteRuleSet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteRuleSet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteRuleSet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteRuleSet", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteRuleSetOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteRuleSet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteRuleSetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteTrafficPolicyOutcome MailManagerClient::DeleteTrafficPolicy(const DeleteTrafficPolicyRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteTrafficPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteTrafficPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteTrafficPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteTrafficPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteTrafficPolicy", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteTrafficPolicyOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteTrafficPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return DeleteTrafficPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetAddonInstanceOutcome MailManagerClient::GetAddonInstance(const GetAddonInstanceRequest& request) const +{ + AWS_OPERATION_GUARD(GetAddonInstance); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAddonInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAddonInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetAddonInstance, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetAddonInstance", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetAddonInstanceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAddonInstance, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetAddonInstanceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetAddonSubscriptionOutcome MailManagerClient::GetAddonSubscription(const GetAddonSubscriptionRequest& request) const +{ + AWS_OPERATION_GUARD(GetAddonSubscription); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAddonSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAddonSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetAddonSubscription, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetAddonSubscription", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetAddonSubscriptionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAddonSubscription, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetAddonSubscriptionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetArchiveOutcome MailManagerClient::GetArchive(const GetArchiveRequest& request) const +{ + AWS_OPERATION_GUARD(GetArchive); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetArchive, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetArchive, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetArchive, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetArchive", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetArchiveOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetArchive, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetArchiveOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetArchiveExportOutcome MailManagerClient::GetArchiveExport(const GetArchiveExportRequest& request) const +{ + AWS_OPERATION_GUARD(GetArchiveExport); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetArchiveExport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetArchiveExport, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetArchiveExport, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetArchiveExport", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetArchiveExportOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetArchiveExport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetArchiveExportOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetArchiveMessageOutcome MailManagerClient::GetArchiveMessage(const GetArchiveMessageRequest& request) const +{ + AWS_OPERATION_GUARD(GetArchiveMessage); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetArchiveMessage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetArchiveMessage, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetArchiveMessage, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetArchiveMessage", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetArchiveMessageOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetArchiveMessage, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetArchiveMessageOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetArchiveMessageContentOutcome MailManagerClient::GetArchiveMessageContent(const GetArchiveMessageContentRequest& request) const +{ + AWS_OPERATION_GUARD(GetArchiveMessageContent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetArchiveMessageContent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetArchiveMessageContent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetArchiveMessageContent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetArchiveMessageContent", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetArchiveMessageContentOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetArchiveMessageContent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetArchiveMessageContentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetArchiveSearchOutcome MailManagerClient::GetArchiveSearch(const GetArchiveSearchRequest& request) const +{ + AWS_OPERATION_GUARD(GetArchiveSearch); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetArchiveSearch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetArchiveSearch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetArchiveSearch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetArchiveSearch", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetArchiveSearchOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetArchiveSearch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetArchiveSearchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetArchiveSearchResultsOutcome MailManagerClient::GetArchiveSearchResults(const GetArchiveSearchResultsRequest& request) const +{ + AWS_OPERATION_GUARD(GetArchiveSearchResults); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetArchiveSearchResults, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetArchiveSearchResults, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetArchiveSearchResults, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetArchiveSearchResults", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetArchiveSearchResultsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetArchiveSearchResults, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetArchiveSearchResultsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetIngressPointOutcome MailManagerClient::GetIngressPoint(const GetIngressPointRequest& request) const +{ + AWS_OPERATION_GUARD(GetIngressPoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetIngressPoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetIngressPoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetIngressPoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetIngressPoint", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetIngressPointOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetIngressPoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetIngressPointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetRelayOutcome MailManagerClient::GetRelay(const GetRelayRequest& request) const +{ + AWS_OPERATION_GUARD(GetRelay); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetRelay, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetRelay, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetRelay, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetRelay", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetRelayOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetRelay, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetRelayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetRuleSetOutcome MailManagerClient::GetRuleSet(const GetRuleSetRequest& request) const +{ + AWS_OPERATION_GUARD(GetRuleSet); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetRuleSet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetRuleSet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetRuleSet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetRuleSet", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetRuleSetOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetRuleSet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetRuleSetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetTrafficPolicyOutcome MailManagerClient::GetTrafficPolicy(const GetTrafficPolicyRequest& request) const +{ + AWS_OPERATION_GUARD(GetTrafficPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetTrafficPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetTrafficPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetTrafficPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetTrafficPolicy", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetTrafficPolicyOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetTrafficPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return GetTrafficPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListAddonInstancesOutcome MailManagerClient::ListAddonInstances(const ListAddonInstancesRequest& request) const +{ + AWS_OPERATION_GUARD(ListAddonInstances); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAddonInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAddonInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAddonInstances, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAddonInstances", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListAddonInstancesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListAddonInstances, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListAddonInstancesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListAddonSubscriptionsOutcome MailManagerClient::ListAddonSubscriptions(const ListAddonSubscriptionsRequest& request) const +{ + AWS_OPERATION_GUARD(ListAddonSubscriptions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAddonSubscriptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAddonSubscriptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAddonSubscriptions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAddonSubscriptions", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListAddonSubscriptionsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListAddonSubscriptions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListAddonSubscriptionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListArchiveExportsOutcome MailManagerClient::ListArchiveExports(const ListArchiveExportsRequest& request) const +{ + AWS_OPERATION_GUARD(ListArchiveExports); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListArchiveExports, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListArchiveExports, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListArchiveExports, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListArchiveExports", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListArchiveExportsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListArchiveExports, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListArchiveExportsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListArchiveSearchesOutcome MailManagerClient::ListArchiveSearches(const ListArchiveSearchesRequest& request) const +{ + AWS_OPERATION_GUARD(ListArchiveSearches); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListArchiveSearches, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListArchiveSearches, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListArchiveSearches, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListArchiveSearches", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListArchiveSearchesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListArchiveSearches, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListArchiveSearchesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListArchivesOutcome MailManagerClient::ListArchives(const ListArchivesRequest& request) const +{ + AWS_OPERATION_GUARD(ListArchives); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListArchives, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListArchives, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListArchives, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListArchives", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListArchivesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListArchives, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListArchivesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListIngressPointsOutcome MailManagerClient::ListIngressPoints(const ListIngressPointsRequest& request) const +{ + AWS_OPERATION_GUARD(ListIngressPoints); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListIngressPoints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListIngressPoints, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListIngressPoints, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListIngressPoints", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListIngressPointsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListIngressPoints, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListIngressPointsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListRelaysOutcome MailManagerClient::ListRelays(const ListRelaysRequest& request) const +{ + AWS_OPERATION_GUARD(ListRelays); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListRelays, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListRelays, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListRelays, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListRelays", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListRelaysOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListRelays, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListRelaysOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListRuleSetsOutcome MailManagerClient::ListRuleSets(const ListRuleSetsRequest& request) const +{ + AWS_OPERATION_GUARD(ListRuleSets); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListRuleSets, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListRuleSets, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListRuleSets, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListRuleSets", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListRuleSetsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListRuleSets, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListRuleSetsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListTagsForResourceOutcome MailManagerClient::ListTagsForResource(const ListTagsForResourceRequest& request) const +{ + AWS_OPERATION_GUARD(ListTagsForResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListTagsForResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTagsForResource", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTagsForResourceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTagsForResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListTagsForResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListTrafficPoliciesOutcome MailManagerClient::ListTrafficPolicies(const ListTrafficPoliciesRequest& request) const +{ + AWS_OPERATION_GUARD(ListTrafficPolicies); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListTrafficPolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListTrafficPolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListTrafficPolicies, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListTrafficPolicies", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListTrafficPoliciesOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListTrafficPolicies, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return ListTrafficPoliciesOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +StartArchiveExportOutcome MailManagerClient::StartArchiveExport(const StartArchiveExportRequest& request) const +{ + AWS_OPERATION_GUARD(StartArchiveExport); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartArchiveExport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartArchiveExport, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartArchiveExport, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartArchiveExport", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StartArchiveExportOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartArchiveExport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartArchiveExportOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +StartArchiveSearchOutcome MailManagerClient::StartArchiveSearch(const StartArchiveSearchRequest& request) const +{ + AWS_OPERATION_GUARD(StartArchiveSearch); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartArchiveSearch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartArchiveSearch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StartArchiveSearch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartArchiveSearch", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StartArchiveSearchOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartArchiveSearch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StartArchiveSearchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +StopArchiveExportOutcome MailManagerClient::StopArchiveExport(const StopArchiveExportRequest& request) const +{ + AWS_OPERATION_GUARD(StopArchiveExport); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopArchiveExport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopArchiveExport, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StopArchiveExport, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopArchiveExport", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StopArchiveExportOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopArchiveExport, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StopArchiveExportOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +StopArchiveSearchOutcome MailManagerClient::StopArchiveSearch(const StopArchiveSearchRequest& request) const +{ + AWS_OPERATION_GUARD(StopArchiveSearch); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, StopArchiveSearch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StopArchiveSearch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, StopArchiveSearch, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StopArchiveSearch", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> StopArchiveSearchOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StopArchiveSearch, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return StopArchiveSearchOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +TagResourceOutcome MailManagerClient::TagResource(const TagResourceRequest& request) const +{ + AWS_OPERATION_GUARD(TagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, TagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".TagResource", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> TagResourceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, TagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return TagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UntagResourceOutcome MailManagerClient::UntagResource(const UntagResourceRequest& request) const +{ + AWS_OPERATION_GUARD(UntagResource); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UntagResource, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UntagResource", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UntagResourceOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UntagResource, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UntagResourceOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateArchiveOutcome MailManagerClient::UpdateArchive(const UpdateArchiveRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateArchive); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateArchive, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateArchive, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateArchive, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateArchive", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateArchiveOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateArchive, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateArchiveOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateIngressPointOutcome MailManagerClient::UpdateIngressPoint(const UpdateIngressPointRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateIngressPoint); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateIngressPoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateIngressPoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateIngressPoint, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateIngressPoint", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateIngressPointOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateIngressPoint, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateIngressPointOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateRelayOutcome MailManagerClient::UpdateRelay(const UpdateRelayRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateRelay); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateRelay, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateRelay, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateRelay, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateRelay", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateRelayOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateRelay, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateRelayOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateRuleSetOutcome MailManagerClient::UpdateRuleSet(const UpdateRuleSetRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateRuleSet); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateRuleSet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateRuleSet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateRuleSet, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateRuleSet", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateRuleSetOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateRuleSet, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateRuleSetOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateTrafficPolicyOutcome MailManagerClient::UpdateTrafficPolicy(const UpdateTrafficPolicyRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateTrafficPolicy); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateTrafficPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateTrafficPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateTrafficPolicy, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateTrafficPolicy", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateTrafficPolicyOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateTrafficPolicy, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + return UpdateTrafficPolicyOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerEndpointProvider.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerEndpointProvider.cpp new file mode 100644 index 00000000000..efc10b25c40 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerEndpointProvider.cpp @@ -0,0 +1,16 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include + +namespace Aws +{ +namespace MailManager +{ +namespace Endpoint +{ +} // namespace Endpoint +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerEndpointRules.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerEndpointRules.cpp new file mode 100644 index 00000000000..d3a1d7a39ce --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerEndpointRules.cpp @@ -0,0 +1,176 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +namespace Aws +{ +namespace MailManager +{ +const size_t MailManagerEndpointRules::RulesBlobStrLen = 3748; +const size_t MailManagerEndpointRules::RulesBlobSize = 3749; + +using RulesBlobT = Aws::Array; +static constexpr RulesBlobT RulesBlob = {{ +'{','"','v','e','r','s','i','o','n','"',':','"','1','.','0','"',',','"','p','a','r','a','m','e','t', +'e','r','s','"',':','{','"','R','e','g','i','o','n','"',':','{','"','b','u','i','l','t','I','n','"', +':','"','A','W','S',':',':','R','e','g','i','o','n','"',',','"','r','e','q','u','i','r','e','d','"', +':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"',':','"','T', +'h','e',' ','A','W','S',' ','r','e','g','i','o','n',' ','u','s','e','d',' ','t','o',' ','d','i','s', +'p','a','t','c','h',' ','t','h','e',' ','r','e','q','u','e','s','t','.','"',',','"','t','y','p','e', +'"',':','"','S','t','r','i','n','g','"','}',',','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','D','u','a', +'l','S','t','a','c','k','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"', +'d','e','f','a','u','l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a', +'t','i','o','n','"',':','"','W','h','e','n',' ','t','r','u','e',',',' ','u','s','e',' ','t','h','e', +' ','d','u','a','l','-','s','t','a','c','k',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', +'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', +'o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','d','u','a','l','-','s','t','a','c', +'k',',',' ','d','i','s','p','a','t','c','h','i','n','g',' ','t','h','e',' ','r','e','q','u','e','s', +'t',' ','M','A','Y',' ','r','e','t','u','r','n',' ','a','n',' ','e','r','r','o','r','.','"',',','"', +'t','y','p','e','"',':','"','B','o','o','l','e','a','n','"','}',',','"','U','s','e','F','I','P','S', +'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','F','I','P', +'S','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"','d','e','f','a','u', +'l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', +':','"','W','h','e','n',' ','t','r','u','e',',',' ','s','e','n','d',' ','t','h','i','s',' ','r','e', +'q','u','e','s','t',' ','t','o',' ','t','h','e',' ','F','I','P','S','-','c','o','m','p','l','i','a', +'n','t',' ','r','e','g','i','o','n','a','l',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', +'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', +'o','e','s',' ','n','o','t',' ','h','a','v','e',' ','a',' ','F','I','P','S',' ','c','o','m','p','l', +'i','a','n','t',' ','e','n','d','p','o','i','n','t',',',' ','d','i','s','p','a','t','c','h','i','n', +'g',' ','t','h','e',' ','r','e','q','u','e','s','t',' ','w','i','l','l',' ','r','e','t','u','r','n', +' ','a','n',' ','e','r','r','o','r','.','"',',','"','t','y','p','e','"',':','"','B','o','o','l','e', +'a','n','"','}',',','"','E','n','d','p','o','i','n','t','"',':','{','"','b','u','i','l','t','I','n', +'"',':','"','S','D','K',':',':','E','n','d','p','o','i','n','t','"',',','"','r','e','q','u','i','r', +'e','d','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', +':','"','O','v','e','r','r','i','d','e',' ','t','h','e',' ','e','n','d','p','o','i','n','t',' ','u', +'s','e','d',' ','t','o',' ','s','e','n','d',' ','t','h','i','s',' ','r','e','q','u','e','s','t','"', +',','"','t','y','p','e','"',':','"','S','t','r','i','n','g','"','}','}',',','"','r','u','l','e','s', +'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', +'i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','E','n', +'d','p','o','i','n','t','"','}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n', +'E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U', +'s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':', +'"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','F', +'I','P','S',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a', +'r','e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':', +'"','e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +'{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k', +'"','}',',','t','r','u','e',']','}',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l', +'i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','D','u','a','l','s','t','a', +'c','k',' ','a','n','d',' ','c','u','s','t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r', +'e',' ','n','o','t',' ','s','u','p','p','o','r','t','e','d','"',',','"','t','y','p','e','"',':','"', +'e','r','r','o','r','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','{','"','r','e','f','"',':', +'"','E','n','d','p','o','i','n','t','"','}',',','"','p','r','o','p','e','r','t','i','e','s','"',':', +'{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"', +'e','n','d','p','o','i','n','t','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"', +'}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i', +'t','i','o','n','s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d', +'i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','i','s','S','e','t','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']','}',']', +',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +'{','"','f','n','"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',','"','a','r', +'g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']',',','"','a', +'s','s','i','g','n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', +'r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t', +'r','u','e',']','}',',','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l', +'s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','D','u','a', +'l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':', +'[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o', +'o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e', +',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[', +'{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}', +',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',',','{','"','f','n','"', +':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[', +'t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g', +'v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u', +'l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']', +'}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n', +'s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o', +'n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':', +'"','h','t','t','p','s',':','/','/','m','a','i','l','-','m','a','n','a','g','e','r','-','f','i','p', +'s','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u', +'l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','}','"',',','"', +'p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':', +'{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']',',','"', +'t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"',':','"','t','r', +'e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r', +'r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D','u','a','l','S','t','a','c','k',' ', +'a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t',' ','t','h','i','s',' ','p','a','r', +'t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','o', +'n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r', +'"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d', +'i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q', +'u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e', +'F','I','P','S','"','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s','"',':','[','{', +'"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l', +'e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','f','n','"',':', +'"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':', +'"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o', +'r','t','s','F','I','P','S','"',']','}',',','t','r','u','e',']','}',']',',','"','r','u','l','e','s', +'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','r','u','l','e', +'s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d', +'p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','m','a', +'i','l','-','m','a','n','a','g','e','r','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.', +'{','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','n','s','S','u','f','f','i', +'x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d', +'e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t', +'"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e', +'"',':','"','t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', +']',',','"','e','r','r','o','r','"',':','"','F','I','P','S',' ','i','s',' ','e','n','a','b','l','e', +'d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s', +' ','n','o','t',' ','s','u','p','p','o','r','t',' ','F','I','P','S','"',',','"','t','y','p','e','"', +':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}', +',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o', +'o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e', +'f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}', +']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':', +'[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a', +'r','g','v','"',':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r', +'"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i', +'o','n','R','e','s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S', +'t','a','c','k','"',']','}',']','}',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o','n', +'d','i','t','i','o','n','s','"',':','[',']',',','"','r','u','l','e','s','"',':','[','{','"','c','o', +'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{', +'"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','m','a','i','l','-','m','a','n','a','g', +'e','r','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s', +'u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f','f','i','x','}','"',',', +'"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"', +':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']',',', +'"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"',':','"','t', +'r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e', +'r','r','o','r','"',':','"','D','u','a','l','S','t','a','c','k',' ','i','s',' ','e','n','a','b','l', +'e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e', +'s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','D','u','a','l','S','t','a','c','k','"',',', +'"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']',',','"','t','y','p','e','"',':','"', +'t','r','e','e','"','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"', +'r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',', +'"','e','n','d','p','o','i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':', +'/','/','m','a','i','l','-','m','a','n','a','g','e','r','.','{','R','e','g','i','o','n','}','.','{', +'P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','n','s','S','u','f','f','i','x', +'}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e', +'r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"', +'}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"', +':','"','t','r','e','e','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',',', +'{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':', +'"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','M', +'i','s','s','i','n','g',' ','R','e','g','i','o','n','"',',','"','t','y','p','e','"',':','"','e','r', +'r','o','r','"','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"','}',']','}','\0' +}}; + +const char* MailManagerEndpointRules::GetRulesBlob() +{ + return RulesBlob.data(); +} + +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerErrorMarshaller.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerErrorMarshaller.cpp new file mode 100644 index 00000000000..b785d3131e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerErrorMarshaller.cpp @@ -0,0 +1,22 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::MailManager; + +AWSError MailManagerErrorMarshaller::FindErrorByName(const char* errorName) const +{ + AWSError error = MailManagerErrorMapper::GetErrorForName(errorName); + if(error.GetErrorType() != CoreErrors::UNKNOWN) + { + return error; + } + + return AWSErrorMarshaller::FindErrorByName(errorName); +} \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerErrors.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerErrors.cpp new file mode 100644 index 00000000000..e126127a716 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerErrors.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include + +using namespace Aws::Client; +using namespace Aws::Utils; +using namespace Aws::MailManager; + +namespace Aws +{ +namespace MailManager +{ +namespace MailManagerErrorMapper +{ + +static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException"); +static const int SERVICE_QUOTA_EXCEEDED_HASH = HashingUtils::HashString("ServiceQuotaExceededException"); + + +AWSError GetErrorForName(const char* errorName) +{ + int hashCode = HashingUtils::HashString(errorName); + + if (hashCode == CONFLICT_HASH) + { + return AWSError(static_cast(MailManagerErrors::CONFLICT), RetryableType::NOT_RETRYABLE); + } + else if (hashCode == SERVICE_QUOTA_EXCEEDED_HASH) + { + return AWSError(static_cast(MailManagerErrors::SERVICE_QUOTA_EXCEEDED), RetryableType::NOT_RETRYABLE); + } + return AWSError(CoreErrors::UNKNOWN, false); +} + +} // namespace MailManagerErrorMapper +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerRequest.cpp new file mode 100644 index 00000000000..8406969df62 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/MailManagerRequest.cpp @@ -0,0 +1,14 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + + +#include + +namespace Aws +{ +namespace MailManager +{ +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/AcceptAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/AcceptAction.cpp new file mode 100644 index 00000000000..ed60ae85357 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/AcceptAction.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace AcceptActionMapper + { + + static const int ALLOW_HASH = HashingUtils::HashString("ALLOW"); + static const int DENY_HASH = HashingUtils::HashString("DENY"); + + + AcceptAction GetAcceptActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ALLOW_HASH) + { + return AcceptAction::ALLOW; + } + else if (hashCode == DENY_HASH) + { + return AcceptAction::DENY; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AcceptAction::NOT_SET; + } + + Aws::String GetNameForAcceptAction(AcceptAction enumValue) + { + switch(enumValue) + { + case AcceptAction::NOT_SET: + return {}; + case AcceptAction::ALLOW: + return "ALLOW"; + case AcceptAction::DENY: + return "DENY"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AcceptActionMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ActionFailurePolicy.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ActionFailurePolicy.cpp new file mode 100644 index 00000000000..b4f65cd765b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ActionFailurePolicy.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace ActionFailurePolicyMapper + { + + static const int CONTINUE_HASH = HashingUtils::HashString("CONTINUE"); + static const int DROP_HASH = HashingUtils::HashString("DROP"); + + + ActionFailurePolicy GetActionFailurePolicyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CONTINUE_HASH) + { + return ActionFailurePolicy::CONTINUE; + } + else if (hashCode == DROP_HASH) + { + return ActionFailurePolicy::DROP; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ActionFailurePolicy::NOT_SET; + } + + Aws::String GetNameForActionFailurePolicy(ActionFailurePolicy enumValue) + { + switch(enumValue) + { + case ActionFailurePolicy::NOT_SET: + return {}; + case ActionFailurePolicy::CONTINUE: + return "CONTINUE"; + case ActionFailurePolicy::DROP: + return "DROP"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ActionFailurePolicyMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/AddHeaderAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/AddHeaderAction.cpp new file mode 100644 index 00000000000..6427019082b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/AddHeaderAction.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +AddHeaderAction::AddHeaderAction() : + m_headerNameHasBeenSet(false), + m_headerValueHasBeenSet(false) +{ +} + +AddHeaderAction::AddHeaderAction(JsonView jsonValue) : + m_headerNameHasBeenSet(false), + m_headerValueHasBeenSet(false) +{ + *this = jsonValue; +} + +AddHeaderAction& AddHeaderAction::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("HeaderName")) + { + m_headerName = jsonValue.GetString("HeaderName"); + + m_headerNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("HeaderValue")) + { + m_headerValue = jsonValue.GetString("HeaderValue"); + + m_headerValueHasBeenSet = true; + } + + return *this; +} + +JsonValue AddHeaderAction::Jsonize() const +{ + JsonValue payload; + + if(m_headerNameHasBeenSet) + { + payload.WithString("HeaderName", m_headerName); + + } + + if(m_headerValueHasBeenSet) + { + payload.WithString("HeaderValue", m_headerValue); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/AddonInstance.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/AddonInstance.cpp new file mode 100644 index 00000000000..11031654930 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/AddonInstance.cpp @@ -0,0 +1,118 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +AddonInstance::AddonInstance() : + m_addonInstanceArnHasBeenSet(false), + m_addonInstanceIdHasBeenSet(false), + m_addonNameHasBeenSet(false), + m_addonSubscriptionIdHasBeenSet(false), + m_createdTimestampHasBeenSet(false) +{ +} + +AddonInstance::AddonInstance(JsonView jsonValue) : + m_addonInstanceArnHasBeenSet(false), + m_addonInstanceIdHasBeenSet(false), + m_addonNameHasBeenSet(false), + m_addonSubscriptionIdHasBeenSet(false), + m_createdTimestampHasBeenSet(false) +{ + *this = jsonValue; +} + +AddonInstance& AddonInstance::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AddonInstanceArn")) + { + m_addonInstanceArn = jsonValue.GetString("AddonInstanceArn"); + + m_addonInstanceArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("AddonInstanceId")) + { + m_addonInstanceId = jsonValue.GetString("AddonInstanceId"); + + m_addonInstanceIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("AddonName")) + { + m_addonName = jsonValue.GetString("AddonName"); + + m_addonNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("AddonSubscriptionId")) + { + m_addonSubscriptionId = jsonValue.GetString("AddonSubscriptionId"); + + m_addonSubscriptionIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + m_createdTimestampHasBeenSet = true; + } + + return *this; +} + +JsonValue AddonInstance::Jsonize() const +{ + JsonValue payload; + + if(m_addonInstanceArnHasBeenSet) + { + payload.WithString("AddonInstanceArn", m_addonInstanceArn); + + } + + if(m_addonInstanceIdHasBeenSet) + { + payload.WithString("AddonInstanceId", m_addonInstanceId); + + } + + if(m_addonNameHasBeenSet) + { + payload.WithString("AddonName", m_addonName); + + } + + if(m_addonSubscriptionIdHasBeenSet) + { + payload.WithString("AddonSubscriptionId", m_addonSubscriptionId); + + } + + if(m_createdTimestampHasBeenSet) + { + payload.WithDouble("CreatedTimestamp", m_createdTimestamp.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/AddonSubscription.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/AddonSubscription.cpp new file mode 100644 index 00000000000..9d625b62c38 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/AddonSubscription.cpp @@ -0,0 +1,103 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +AddonSubscription::AddonSubscription() : + m_addonNameHasBeenSet(false), + m_addonSubscriptionArnHasBeenSet(false), + m_addonSubscriptionIdHasBeenSet(false), + m_createdTimestampHasBeenSet(false) +{ +} + +AddonSubscription::AddonSubscription(JsonView jsonValue) : + m_addonNameHasBeenSet(false), + m_addonSubscriptionArnHasBeenSet(false), + m_addonSubscriptionIdHasBeenSet(false), + m_createdTimestampHasBeenSet(false) +{ + *this = jsonValue; +} + +AddonSubscription& AddonSubscription::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AddonName")) + { + m_addonName = jsonValue.GetString("AddonName"); + + m_addonNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("AddonSubscriptionArn")) + { + m_addonSubscriptionArn = jsonValue.GetString("AddonSubscriptionArn"); + + m_addonSubscriptionArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("AddonSubscriptionId")) + { + m_addonSubscriptionId = jsonValue.GetString("AddonSubscriptionId"); + + m_addonSubscriptionIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + m_createdTimestampHasBeenSet = true; + } + + return *this; +} + +JsonValue AddonSubscription::Jsonize() const +{ + JsonValue payload; + + if(m_addonNameHasBeenSet) + { + payload.WithString("AddonName", m_addonName); + + } + + if(m_addonSubscriptionArnHasBeenSet) + { + payload.WithString("AddonSubscriptionArn", m_addonSubscriptionArn); + + } + + if(m_addonSubscriptionIdHasBeenSet) + { + payload.WithString("AddonSubscriptionId", m_addonSubscriptionId); + + } + + if(m_createdTimestampHasBeenSet) + { + payload.WithDouble("CreatedTimestamp", m_createdTimestamp.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/Analysis.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/Analysis.cpp new file mode 100644 index 00000000000..f87a8890e27 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/Analysis.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +Analysis::Analysis() : + m_analyzerHasBeenSet(false), + m_resultFieldHasBeenSet(false) +{ +} + +Analysis::Analysis(JsonView jsonValue) : + m_analyzerHasBeenSet(false), + m_resultFieldHasBeenSet(false) +{ + *this = jsonValue; +} + +Analysis& Analysis::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Analyzer")) + { + m_analyzer = jsonValue.GetString("Analyzer"); + + m_analyzerHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResultField")) + { + m_resultField = jsonValue.GetString("ResultField"); + + m_resultFieldHasBeenSet = true; + } + + return *this; +} + +JsonValue Analysis::Jsonize() const +{ + JsonValue payload; + + if(m_analyzerHasBeenSet) + { + payload.WithString("Analyzer", m_analyzer); + + } + + if(m_resultFieldHasBeenSet) + { + payload.WithString("ResultField", m_resultField); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/Archive.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/Archive.cpp new file mode 100644 index 00000000000..c544d4ddb60 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/Archive.cpp @@ -0,0 +1,104 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +Archive::Archive() : + m_archiveIdHasBeenSet(false), + m_archiveNameHasBeenSet(false), + m_archiveState(ArchiveState::NOT_SET), + m_archiveStateHasBeenSet(false), + m_lastUpdatedTimestampHasBeenSet(false) +{ +} + +Archive::Archive(JsonView jsonValue) : + m_archiveIdHasBeenSet(false), + m_archiveNameHasBeenSet(false), + m_archiveState(ArchiveState::NOT_SET), + m_archiveStateHasBeenSet(false), + m_lastUpdatedTimestampHasBeenSet(false) +{ + *this = jsonValue; +} + +Archive& Archive::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ArchiveId")) + { + m_archiveId = jsonValue.GetString("ArchiveId"); + + m_archiveIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ArchiveName")) + { + m_archiveName = jsonValue.GetString("ArchiveName"); + + m_archiveNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("ArchiveState")) + { + m_archiveState = ArchiveStateMapper::GetArchiveStateForName(jsonValue.GetString("ArchiveState")); + + m_archiveStateHasBeenSet = true; + } + + if(jsonValue.ValueExists("LastUpdatedTimestamp")) + { + m_lastUpdatedTimestamp = jsonValue.GetDouble("LastUpdatedTimestamp"); + + m_lastUpdatedTimestampHasBeenSet = true; + } + + return *this; +} + +JsonValue Archive::Jsonize() const +{ + JsonValue payload; + + if(m_archiveIdHasBeenSet) + { + payload.WithString("ArchiveId", m_archiveId); + + } + + if(m_archiveNameHasBeenSet) + { + payload.WithString("ArchiveName", m_archiveName); + + } + + if(m_archiveStateHasBeenSet) + { + payload.WithString("ArchiveState", ArchiveStateMapper::GetNameForArchiveState(m_archiveState)); + } + + if(m_lastUpdatedTimestampHasBeenSet) + { + payload.WithDouble("LastUpdatedTimestamp", m_lastUpdatedTimestamp.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveAction.cpp new file mode 100644 index 00000000000..a4adaa365fb --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveAction.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ArchiveAction::ArchiveAction() : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_targetArchiveHasBeenSet(false) +{ +} + +ArchiveAction::ArchiveAction(JsonView jsonValue) : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_targetArchiveHasBeenSet(false) +{ + *this = jsonValue; +} + +ArchiveAction& ArchiveAction::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ActionFailurePolicy")) + { + m_actionFailurePolicy = ActionFailurePolicyMapper::GetActionFailurePolicyForName(jsonValue.GetString("ActionFailurePolicy")); + + m_actionFailurePolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("TargetArchive")) + { + m_targetArchive = jsonValue.GetString("TargetArchive"); + + m_targetArchiveHasBeenSet = true; + } + + return *this; +} + +JsonValue ArchiveAction::Jsonize() const +{ + JsonValue payload; + + if(m_actionFailurePolicyHasBeenSet) + { + payload.WithString("ActionFailurePolicy", ActionFailurePolicyMapper::GetNameForActionFailurePolicy(m_actionFailurePolicy)); + } + + if(m_targetArchiveHasBeenSet) + { + payload.WithString("TargetArchive", m_targetArchive); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanEmailAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanEmailAttribute.cpp new file mode 100644 index 00000000000..b5ea8ea1eef --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanEmailAttribute.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace ArchiveBooleanEmailAttributeMapper + { + + static const int HAS_ATTACHMENTS_HASH = HashingUtils::HashString("HAS_ATTACHMENTS"); + + + ArchiveBooleanEmailAttribute GetArchiveBooleanEmailAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == HAS_ATTACHMENTS_HASH) + { + return ArchiveBooleanEmailAttribute::HAS_ATTACHMENTS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ArchiveBooleanEmailAttribute::NOT_SET; + } + + Aws::String GetNameForArchiveBooleanEmailAttribute(ArchiveBooleanEmailAttribute enumValue) + { + switch(enumValue) + { + case ArchiveBooleanEmailAttribute::NOT_SET: + return {}; + case ArchiveBooleanEmailAttribute::HAS_ATTACHMENTS: + return "HAS_ATTACHMENTS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ArchiveBooleanEmailAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanExpression.cpp new file mode 100644 index 00000000000..8ac9376bfcc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanExpression.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ArchiveBooleanExpression::ArchiveBooleanExpression() : + m_evaluateHasBeenSet(false), + m_operator(ArchiveBooleanOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ +} + +ArchiveBooleanExpression::ArchiveBooleanExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(ArchiveBooleanOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ + *this = jsonValue; +} + +ArchiveBooleanExpression& ArchiveBooleanExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = ArchiveBooleanOperatorMapper::GetArchiveBooleanOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + return *this; +} + +JsonValue ArchiveBooleanExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", ArchiveBooleanOperatorMapper::GetNameForArchiveBooleanOperator(m_operator)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanOperator.cpp new file mode 100644 index 00000000000..337b14a7495 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanOperator.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace ArchiveBooleanOperatorMapper + { + + static const int IS_TRUE_HASH = HashingUtils::HashString("IS_TRUE"); + static const int IS_FALSE_HASH = HashingUtils::HashString("IS_FALSE"); + + + ArchiveBooleanOperator GetArchiveBooleanOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == IS_TRUE_HASH) + { + return ArchiveBooleanOperator::IS_TRUE; + } + else if (hashCode == IS_FALSE_HASH) + { + return ArchiveBooleanOperator::IS_FALSE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ArchiveBooleanOperator::NOT_SET; + } + + Aws::String GetNameForArchiveBooleanOperator(ArchiveBooleanOperator enumValue) + { + switch(enumValue) + { + case ArchiveBooleanOperator::NOT_SET: + return {}; + case ArchiveBooleanOperator::IS_TRUE: + return "IS_TRUE"; + case ArchiveBooleanOperator::IS_FALSE: + return "IS_FALSE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ArchiveBooleanOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanToEvaluate.cpp new file mode 100644 index 00000000000..d5d8782b4cd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveBooleanToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ArchiveBooleanToEvaluate::ArchiveBooleanToEvaluate() : + m_attribute(ArchiveBooleanEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +ArchiveBooleanToEvaluate::ArchiveBooleanToEvaluate(JsonView jsonValue) : + m_attribute(ArchiveBooleanEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +ArchiveBooleanToEvaluate& ArchiveBooleanToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = ArchiveBooleanEmailAttributeMapper::GetArchiveBooleanEmailAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue ArchiveBooleanToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", ArchiveBooleanEmailAttributeMapper::GetNameForArchiveBooleanEmailAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveFilterCondition.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveFilterCondition.cpp new file mode 100644 index 00000000000..4355b07899f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveFilterCondition.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ArchiveFilterCondition::ArchiveFilterCondition() : + m_booleanExpressionHasBeenSet(false), + m_stringExpressionHasBeenSet(false) +{ +} + +ArchiveFilterCondition::ArchiveFilterCondition(JsonView jsonValue) : + m_booleanExpressionHasBeenSet(false), + m_stringExpressionHasBeenSet(false) +{ + *this = jsonValue; +} + +ArchiveFilterCondition& ArchiveFilterCondition::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("BooleanExpression")) + { + m_booleanExpression = jsonValue.GetObject("BooleanExpression"); + + m_booleanExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("StringExpression")) + { + m_stringExpression = jsonValue.GetObject("StringExpression"); + + m_stringExpressionHasBeenSet = true; + } + + return *this; +} + +JsonValue ArchiveFilterCondition::Jsonize() const +{ + JsonValue payload; + + if(m_booleanExpressionHasBeenSet) + { + payload.WithObject("BooleanExpression", m_booleanExpression.Jsonize()); + + } + + if(m_stringExpressionHasBeenSet) + { + payload.WithObject("StringExpression", m_stringExpression.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveFilters.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveFilters.cpp new file mode 100644 index 00000000000..e5b9d3d8af8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveFilters.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ArchiveFilters::ArchiveFilters() : + m_includeHasBeenSet(false), + m_unlessHasBeenSet(false) +{ +} + +ArchiveFilters::ArchiveFilters(JsonView jsonValue) : + m_includeHasBeenSet(false), + m_unlessHasBeenSet(false) +{ + *this = jsonValue; +} + +ArchiveFilters& ArchiveFilters::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Include")) + { + Aws::Utils::Array includeJsonList = jsonValue.GetArray("Include"); + for(unsigned includeIndex = 0; includeIndex < includeJsonList.GetLength(); ++includeIndex) + { + m_include.push_back(includeJsonList[includeIndex].AsObject()); + } + m_includeHasBeenSet = true; + } + + if(jsonValue.ValueExists("Unless")) + { + Aws::Utils::Array unlessJsonList = jsonValue.GetArray("Unless"); + for(unsigned unlessIndex = 0; unlessIndex < unlessJsonList.GetLength(); ++unlessIndex) + { + m_unless.push_back(unlessJsonList[unlessIndex].AsObject()); + } + m_unlessHasBeenSet = true; + } + + return *this; +} + +JsonValue ArchiveFilters::Jsonize() const +{ + JsonValue payload; + + if(m_includeHasBeenSet) + { + Aws::Utils::Array includeJsonList(m_include.size()); + for(unsigned includeIndex = 0; includeIndex < includeJsonList.GetLength(); ++includeIndex) + { + includeJsonList[includeIndex].AsObject(m_include[includeIndex].Jsonize()); + } + payload.WithArray("Include", std::move(includeJsonList)); + + } + + if(m_unlessHasBeenSet) + { + Aws::Utils::Array unlessJsonList(m_unless.size()); + for(unsigned unlessIndex = 0; unlessIndex < unlessJsonList.GetLength(); ++unlessIndex) + { + unlessJsonList[unlessIndex].AsObject(m_unless[unlessIndex].Jsonize()); + } + payload.WithArray("Unless", std::move(unlessJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveRetention.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveRetention.cpp new file mode 100644 index 00000000000..9cc6d4ec8f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveRetention.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ArchiveRetention::ArchiveRetention() : + m_retentionPeriod(RetentionPeriod::NOT_SET), + m_retentionPeriodHasBeenSet(false) +{ +} + +ArchiveRetention::ArchiveRetention(JsonView jsonValue) : + m_retentionPeriod(RetentionPeriod::NOT_SET), + m_retentionPeriodHasBeenSet(false) +{ + *this = jsonValue; +} + +ArchiveRetention& ArchiveRetention::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("RetentionPeriod")) + { + m_retentionPeriod = RetentionPeriodMapper::GetRetentionPeriodForName(jsonValue.GetString("RetentionPeriod")); + + m_retentionPeriodHasBeenSet = true; + } + + return *this; +} + +JsonValue ArchiveRetention::Jsonize() const +{ + JsonValue payload; + + if(m_retentionPeriodHasBeenSet) + { + payload.WithString("RetentionPeriod", RetentionPeriodMapper::GetNameForRetentionPeriod(m_retentionPeriod)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveState.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveState.cpp new file mode 100644 index 00000000000..89b5bbf4c4f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveState.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace ArchiveStateMapper + { + + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int PENDING_DELETION_HASH = HashingUtils::HashString("PENDING_DELETION"); + + + ArchiveState GetArchiveStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ACTIVE_HASH) + { + return ArchiveState::ACTIVE; + } + else if (hashCode == PENDING_DELETION_HASH) + { + return ArchiveState::PENDING_DELETION; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ArchiveState::NOT_SET; + } + + Aws::String GetNameForArchiveState(ArchiveState enumValue) + { + switch(enumValue) + { + case ArchiveState::NOT_SET: + return {}; + case ArchiveState::ACTIVE: + return "ACTIVE"; + case ArchiveState::PENDING_DELETION: + return "PENDING_DELETION"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ArchiveStateMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringEmailAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringEmailAttribute.cpp new file mode 100644 index 00000000000..9d8db62c74c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringEmailAttribute.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace ArchiveStringEmailAttributeMapper + { + + static const int TO_HASH = HashingUtils::HashString("TO"); + static const int FROM_HASH = HashingUtils::HashString("FROM"); + static const int CC_HASH = HashingUtils::HashString("CC"); + static const int SUBJECT_HASH = HashingUtils::HashString("SUBJECT"); + + + ArchiveStringEmailAttribute GetArchiveStringEmailAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == TO_HASH) + { + return ArchiveStringEmailAttribute::TO; + } + else if (hashCode == FROM_HASH) + { + return ArchiveStringEmailAttribute::FROM; + } + else if (hashCode == CC_HASH) + { + return ArchiveStringEmailAttribute::CC; + } + else if (hashCode == SUBJECT_HASH) + { + return ArchiveStringEmailAttribute::SUBJECT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ArchiveStringEmailAttribute::NOT_SET; + } + + Aws::String GetNameForArchiveStringEmailAttribute(ArchiveStringEmailAttribute enumValue) + { + switch(enumValue) + { + case ArchiveStringEmailAttribute::NOT_SET: + return {}; + case ArchiveStringEmailAttribute::TO: + return "TO"; + case ArchiveStringEmailAttribute::FROM: + return "FROM"; + case ArchiveStringEmailAttribute::CC: + return "CC"; + case ArchiveStringEmailAttribute::SUBJECT: + return "SUBJECT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ArchiveStringEmailAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringExpression.cpp new file mode 100644 index 00000000000..783c7cbdf77 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringExpression.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ArchiveStringExpression::ArchiveStringExpression() : + m_evaluateHasBeenSet(false), + m_operator(ArchiveStringOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +ArchiveStringExpression::ArchiveStringExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(ArchiveStringOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ + *this = jsonValue; +} + +ArchiveStringExpression& ArchiveStringExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = ArchiveStringOperatorMapper::GetArchiveStringOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(valuesJsonList[valuesIndex].AsString()); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue ArchiveStringExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", ArchiveStringOperatorMapper::GetNameForArchiveStringOperator(m_operator)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(m_values[valuesIndex]); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringOperator.cpp new file mode 100644 index 00000000000..4fb33d6913c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringOperator.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace ArchiveStringOperatorMapper + { + + static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); + + + ArchiveStringOperator GetArchiveStringOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CONTAINS_HASH) + { + return ArchiveStringOperator::CONTAINS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ArchiveStringOperator::NOT_SET; + } + + Aws::String GetNameForArchiveStringOperator(ArchiveStringOperator enumValue) + { + switch(enumValue) + { + case ArchiveStringOperator::NOT_SET: + return {}; + case ArchiveStringOperator::CONTAINS: + return "CONTAINS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ArchiveStringOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringToEvaluate.cpp new file mode 100644 index 00000000000..9fe23ae9988 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ArchiveStringToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ArchiveStringToEvaluate::ArchiveStringToEvaluate() : + m_attribute(ArchiveStringEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +ArchiveStringToEvaluate::ArchiveStringToEvaluate(JsonView jsonValue) : + m_attribute(ArchiveStringEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +ArchiveStringToEvaluate& ArchiveStringToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = ArchiveStringEmailAttributeMapper::GetArchiveStringEmailAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue ArchiveStringToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", ArchiveStringEmailAttributeMapper::GetNameForArchiveStringEmailAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonInstanceRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonInstanceRequest.cpp new file mode 100644 index 00000000000..5060820811a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonInstanceRequest.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateAddonInstanceRequest::CreateAddonInstanceRequest() : + m_addonSubscriptionIdHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateAddonInstanceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_addonSubscriptionIdHasBeenSet) + { + payload.WithString("AddonSubscriptionId", m_addonSubscriptionId); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateAddonInstanceRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.CreateAddonInstance")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonInstanceResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonInstanceResult.cpp new file mode 100644 index 00000000000..53848628b84 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonInstanceResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateAddonInstanceResult::CreateAddonInstanceResult() +{ +} + +CreateAddonInstanceResult::CreateAddonInstanceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateAddonInstanceResult& CreateAddonInstanceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AddonInstanceId")) + { + m_addonInstanceId = jsonValue.GetString("AddonInstanceId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonSubscriptionRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonSubscriptionRequest.cpp new file mode 100644 index 00000000000..1df51943967 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonSubscriptionRequest.cpp @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateAddonSubscriptionRequest::CreateAddonSubscriptionRequest() : + m_addonNameHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateAddonSubscriptionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_addonNameHasBeenSet) + { + payload.WithString("AddonName", m_addonName); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateAddonSubscriptionRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.CreateAddonSubscription")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonSubscriptionResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonSubscriptionResult.cpp new file mode 100644 index 00000000000..953aae4e492 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateAddonSubscriptionResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateAddonSubscriptionResult::CreateAddonSubscriptionResult() +{ +} + +CreateAddonSubscriptionResult::CreateAddonSubscriptionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateAddonSubscriptionResult& CreateAddonSubscriptionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AddonSubscriptionId")) + { + m_addonSubscriptionId = jsonValue.GetString("AddonSubscriptionId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateArchiveRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateArchiveRequest.cpp new file mode 100644 index 00000000000..2925d11a3a9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateArchiveRequest.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateArchiveRequest::CreateArchiveRequest() : + m_archiveNameHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_kmsKeyArnHasBeenSet(false), + m_retentionHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateArchiveRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archiveNameHasBeenSet) + { + payload.WithString("ArchiveName", m_archiveName); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_kmsKeyArnHasBeenSet) + { + payload.WithString("KmsKeyArn", m_kmsKeyArn); + + } + + if(m_retentionHasBeenSet) + { + payload.WithObject("Retention", m_retention.Jsonize()); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateArchiveRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.CreateArchive")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateArchiveResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateArchiveResult.cpp new file mode 100644 index 00000000000..d24feccea95 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateArchiveResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateArchiveResult::CreateArchiveResult() +{ +} + +CreateArchiveResult::CreateArchiveResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateArchiveResult& CreateArchiveResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ArchiveId")) + { + m_archiveId = jsonValue.GetString("ArchiveId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateIngressPointRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateIngressPointRequest.cpp new file mode 100644 index 00000000000..76932902ee5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateIngressPointRequest.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateIngressPointRequest::CreateIngressPointRequest() : + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_ingressPointConfigurationHasBeenSet(false), + m_ingressPointNameHasBeenSet(false), + m_ruleSetIdHasBeenSet(false), + m_tagsHasBeenSet(false), + m_trafficPolicyIdHasBeenSet(false), + m_type(IngressPointType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +Aws::String CreateIngressPointRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_ingressPointConfigurationHasBeenSet) + { + payload.WithObject("IngressPointConfiguration", m_ingressPointConfiguration.Jsonize()); + + } + + if(m_ingressPointNameHasBeenSet) + { + payload.WithString("IngressPointName", m_ingressPointName); + + } + + if(m_ruleSetIdHasBeenSet) + { + payload.WithString("RuleSetId", m_ruleSetId); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + if(m_trafficPolicyIdHasBeenSet) + { + payload.WithString("TrafficPolicyId", m_trafficPolicyId); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("Type", IngressPointTypeMapper::GetNameForIngressPointType(m_type)); + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateIngressPointRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.CreateIngressPoint")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateIngressPointResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateIngressPointResult.cpp new file mode 100644 index 00000000000..89958a844ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateIngressPointResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateIngressPointResult::CreateIngressPointResult() +{ +} + +CreateIngressPointResult::CreateIngressPointResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateIngressPointResult& CreateIngressPointResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("IngressPointId")) + { + m_ingressPointId = jsonValue.GetString("IngressPointId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRelayRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRelayRequest.cpp new file mode 100644 index 00000000000..db02684b625 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRelayRequest.cpp @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateRelayRequest::CreateRelayRequest() : + m_authenticationHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_relayNameHasBeenSet(false), + m_serverNameHasBeenSet(false), + m_serverPort(0), + m_serverPortHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateRelayRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_authenticationHasBeenSet) + { + payload.WithObject("Authentication", m_authentication.Jsonize()); + + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_relayNameHasBeenSet) + { + payload.WithString("RelayName", m_relayName); + + } + + if(m_serverNameHasBeenSet) + { + payload.WithString("ServerName", m_serverName); + + } + + if(m_serverPortHasBeenSet) + { + payload.WithInteger("ServerPort", m_serverPort); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateRelayRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.CreateRelay")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRelayResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRelayResult.cpp new file mode 100644 index 00000000000..b1155f85f90 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRelayResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateRelayResult::CreateRelayResult() +{ +} + +CreateRelayResult::CreateRelayResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateRelayResult& CreateRelayResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("RelayId")) + { + m_relayId = jsonValue.GetString("RelayId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRuleSetRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRuleSetRequest.cpp new file mode 100644 index 00000000000..c6c2808e0b6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRuleSetRequest.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateRuleSetRequest::CreateRuleSetRequest() : + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_ruleSetNameHasBeenSet(false), + m_rulesHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String CreateRuleSetRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_ruleSetNameHasBeenSet) + { + payload.WithString("RuleSetName", m_ruleSetName); + + } + + if(m_rulesHasBeenSet) + { + Aws::Utils::Array rulesJsonList(m_rules.size()); + for(unsigned rulesIndex = 0; rulesIndex < rulesJsonList.GetLength(); ++rulesIndex) + { + rulesJsonList[rulesIndex].AsObject(m_rules[rulesIndex].Jsonize()); + } + payload.WithArray("Rules", std::move(rulesJsonList)); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateRuleSetRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.CreateRuleSet")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRuleSetResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRuleSetResult.cpp new file mode 100644 index 00000000000..b7dc1fab2c8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateRuleSetResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateRuleSetResult::CreateRuleSetResult() +{ +} + +CreateRuleSetResult::CreateRuleSetResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateRuleSetResult& CreateRuleSetResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("RuleSetId")) + { + m_ruleSetId = jsonValue.GetString("RuleSetId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateTrafficPolicyRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateTrafficPolicyRequest.cpp new file mode 100644 index 00000000000..40e6f1dea24 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateTrafficPolicyRequest.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateTrafficPolicyRequest::CreateTrafficPolicyRequest() : + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_defaultAction(AcceptAction::NOT_SET), + m_defaultActionHasBeenSet(false), + m_maxMessageSizeBytes(0), + m_maxMessageSizeBytesHasBeenSet(false), + m_policyStatementsHasBeenSet(false), + m_tagsHasBeenSet(false), + m_trafficPolicyNameHasBeenSet(false) +{ +} + +Aws::String CreateTrafficPolicyRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("ClientToken", m_clientToken); + + } + + if(m_defaultActionHasBeenSet) + { + payload.WithString("DefaultAction", AcceptActionMapper::GetNameForAcceptAction(m_defaultAction)); + } + + if(m_maxMessageSizeBytesHasBeenSet) + { + payload.WithInteger("MaxMessageSizeBytes", m_maxMessageSizeBytes); + + } + + if(m_policyStatementsHasBeenSet) + { + Aws::Utils::Array policyStatementsJsonList(m_policyStatements.size()); + for(unsigned policyStatementsIndex = 0; policyStatementsIndex < policyStatementsJsonList.GetLength(); ++policyStatementsIndex) + { + policyStatementsJsonList[policyStatementsIndex].AsObject(m_policyStatements[policyStatementsIndex].Jsonize()); + } + payload.WithArray("PolicyStatements", std::move(policyStatementsJsonList)); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + if(m_trafficPolicyNameHasBeenSet) + { + payload.WithString("TrafficPolicyName", m_trafficPolicyName); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection CreateTrafficPolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.CreateTrafficPolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateTrafficPolicyResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateTrafficPolicyResult.cpp new file mode 100644 index 00000000000..dd7c0a9ac3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/CreateTrafficPolicyResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateTrafficPolicyResult::CreateTrafficPolicyResult() +{ +} + +CreateTrafficPolicyResult::CreateTrafficPolicyResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateTrafficPolicyResult& CreateTrafficPolicyResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("TrafficPolicyId")) + { + m_trafficPolicyId = jsonValue.GetString("TrafficPolicyId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonInstanceRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonInstanceRequest.cpp new file mode 100644 index 00000000000..b6650e85f0a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonInstanceRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteAddonInstanceRequest::DeleteAddonInstanceRequest() : + m_addonInstanceIdHasBeenSet(false) +{ +} + +Aws::String DeleteAddonInstanceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_addonInstanceIdHasBeenSet) + { + payload.WithString("AddonInstanceId", m_addonInstanceId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteAddonInstanceRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.DeleteAddonInstance")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonInstanceResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonInstanceResult.cpp new file mode 100644 index 00000000000..9a11a420f6a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonInstanceResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteAddonInstanceResult::DeleteAddonInstanceResult() +{ +} + +DeleteAddonInstanceResult::DeleteAddonInstanceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteAddonInstanceResult& DeleteAddonInstanceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonSubscriptionRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonSubscriptionRequest.cpp new file mode 100644 index 00000000000..842d89ad793 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonSubscriptionRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteAddonSubscriptionRequest::DeleteAddonSubscriptionRequest() : + m_addonSubscriptionIdHasBeenSet(false) +{ +} + +Aws::String DeleteAddonSubscriptionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_addonSubscriptionIdHasBeenSet) + { + payload.WithString("AddonSubscriptionId", m_addonSubscriptionId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteAddonSubscriptionRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.DeleteAddonSubscription")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonSubscriptionResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonSubscriptionResult.cpp new file mode 100644 index 00000000000..7c0f5196abb --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteAddonSubscriptionResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteAddonSubscriptionResult::DeleteAddonSubscriptionResult() +{ +} + +DeleteAddonSubscriptionResult::DeleteAddonSubscriptionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteAddonSubscriptionResult& DeleteAddonSubscriptionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteArchiveRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteArchiveRequest.cpp new file mode 100644 index 00000000000..4f3a993f24a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteArchiveRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteArchiveRequest::DeleteArchiveRequest() : + m_archiveIdHasBeenSet(false) +{ +} + +Aws::String DeleteArchiveRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archiveIdHasBeenSet) + { + payload.WithString("ArchiveId", m_archiveId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteArchiveRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.DeleteArchive")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteArchiveResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteArchiveResult.cpp new file mode 100644 index 00000000000..82afbb0768d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteArchiveResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteArchiveResult::DeleteArchiveResult() +{ +} + +DeleteArchiveResult::DeleteArchiveResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteArchiveResult& DeleteArchiveResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteIngressPointRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteIngressPointRequest.cpp new file mode 100644 index 00000000000..a2beaad3e8c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteIngressPointRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteIngressPointRequest::DeleteIngressPointRequest() : + m_ingressPointIdHasBeenSet(false) +{ +} + +Aws::String DeleteIngressPointRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_ingressPointIdHasBeenSet) + { + payload.WithString("IngressPointId", m_ingressPointId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteIngressPointRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.DeleteIngressPoint")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteIngressPointResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteIngressPointResult.cpp new file mode 100644 index 00000000000..f01ce6066e6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteIngressPointResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteIngressPointResult::DeleteIngressPointResult() +{ +} + +DeleteIngressPointResult::DeleteIngressPointResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteIngressPointResult& DeleteIngressPointResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRelayRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRelayRequest.cpp new file mode 100644 index 00000000000..bd1540bd033 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRelayRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteRelayRequest::DeleteRelayRequest() : + m_relayIdHasBeenSet(false) +{ +} + +Aws::String DeleteRelayRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_relayIdHasBeenSet) + { + payload.WithString("RelayId", m_relayId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteRelayRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.DeleteRelay")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRelayResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRelayResult.cpp new file mode 100644 index 00000000000..763aae3771d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRelayResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteRelayResult::DeleteRelayResult() +{ +} + +DeleteRelayResult::DeleteRelayResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteRelayResult& DeleteRelayResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRuleSetRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRuleSetRequest.cpp new file mode 100644 index 00000000000..37e2e10f91e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRuleSetRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteRuleSetRequest::DeleteRuleSetRequest() : + m_ruleSetIdHasBeenSet(false) +{ +} + +Aws::String DeleteRuleSetRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_ruleSetIdHasBeenSet) + { + payload.WithString("RuleSetId", m_ruleSetId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteRuleSetRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.DeleteRuleSet")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRuleSetResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRuleSetResult.cpp new file mode 100644 index 00000000000..7e659dc6f03 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteRuleSetResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteRuleSetResult::DeleteRuleSetResult() +{ +} + +DeleteRuleSetResult::DeleteRuleSetResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteRuleSetResult& DeleteRuleSetResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteTrafficPolicyRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteTrafficPolicyRequest.cpp new file mode 100644 index 00000000000..9d7b38d049e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteTrafficPolicyRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteTrafficPolicyRequest::DeleteTrafficPolicyRequest() : + m_trafficPolicyIdHasBeenSet(false) +{ +} + +Aws::String DeleteTrafficPolicyRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_trafficPolicyIdHasBeenSet) + { + payload.WithString("TrafficPolicyId", m_trafficPolicyId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection DeleteTrafficPolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.DeleteTrafficPolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteTrafficPolicyResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteTrafficPolicyResult.cpp new file mode 100644 index 00000000000..4122eb00fb1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeleteTrafficPolicyResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteTrafficPolicyResult::DeleteTrafficPolicyResult() +{ +} + +DeleteTrafficPolicyResult::DeleteTrafficPolicyResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteTrafficPolicyResult& DeleteTrafficPolicyResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DeliverToMailboxAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeliverToMailboxAction.cpp new file mode 100644 index 00000000000..69b91b01e47 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DeliverToMailboxAction.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +DeliverToMailboxAction::DeliverToMailboxAction() : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_mailboxArnHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ +} + +DeliverToMailboxAction::DeliverToMailboxAction(JsonView jsonValue) : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_mailboxArnHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ + *this = jsonValue; +} + +DeliverToMailboxAction& DeliverToMailboxAction::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ActionFailurePolicy")) + { + m_actionFailurePolicy = ActionFailurePolicyMapper::GetActionFailurePolicyForName(jsonValue.GetString("ActionFailurePolicy")); + + m_actionFailurePolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("MailboxArn")) + { + m_mailboxArn = jsonValue.GetString("MailboxArn"); + + m_mailboxArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("RoleArn")) + { + m_roleArn = jsonValue.GetString("RoleArn"); + + m_roleArnHasBeenSet = true; + } + + return *this; +} + +JsonValue DeliverToMailboxAction::Jsonize() const +{ + JsonValue payload; + + if(m_actionFailurePolicyHasBeenSet) + { + payload.WithString("ActionFailurePolicy", ActionFailurePolicyMapper::GetNameForActionFailurePolicy(m_actionFailurePolicy)); + } + + if(m_mailboxArnHasBeenSet) + { + payload.WithString("MailboxArn", m_mailboxArn); + + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("RoleArn", m_roleArn); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/DropAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/DropAction.cpp new file mode 100644 index 00000000000..bc90ae36927 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/DropAction.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +DropAction::DropAction() +{ +} + +DropAction::DropAction(JsonView jsonValue) +{ + *this = jsonValue; +} + +DropAction& DropAction::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue DropAction::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportDestinationConfiguration.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportDestinationConfiguration.cpp new file mode 100644 index 00000000000..364352aa5e7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportDestinationConfiguration.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ExportDestinationConfiguration::ExportDestinationConfiguration() : + m_s3HasBeenSet(false) +{ +} + +ExportDestinationConfiguration::ExportDestinationConfiguration(JsonView jsonValue) : + m_s3HasBeenSet(false) +{ + *this = jsonValue; +} + +ExportDestinationConfiguration& ExportDestinationConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("S3")) + { + m_s3 = jsonValue.GetObject("S3"); + + m_s3HasBeenSet = true; + } + + return *this; +} + +JsonValue ExportDestinationConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_s3HasBeenSet) + { + payload.WithObject("S3", m_s3.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportState.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportState.cpp new file mode 100644 index 00000000000..a2d4127123e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportState.cpp @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace ExportStateMapper + { + + static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); + static const int PREPROCESSING_HASH = HashingUtils::HashString("PREPROCESSING"); + static const int PROCESSING_HASH = HashingUtils::HashString("PROCESSING"); + static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + + + ExportState GetExportStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == QUEUED_HASH) + { + return ExportState::QUEUED; + } + else if (hashCode == PREPROCESSING_HASH) + { + return ExportState::PREPROCESSING; + } + else if (hashCode == PROCESSING_HASH) + { + return ExportState::PROCESSING; + } + else if (hashCode == COMPLETED_HASH) + { + return ExportState::COMPLETED; + } + else if (hashCode == FAILED_HASH) + { + return ExportState::FAILED; + } + else if (hashCode == CANCELLED_HASH) + { + return ExportState::CANCELLED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ExportState::NOT_SET; + } + + Aws::String GetNameForExportState(ExportState enumValue) + { + switch(enumValue) + { + case ExportState::NOT_SET: + return {}; + case ExportState::QUEUED: + return "QUEUED"; + case ExportState::PREPROCESSING: + return "PREPROCESSING"; + case ExportState::PROCESSING: + return "PROCESSING"; + case ExportState::COMPLETED: + return "COMPLETED"; + case ExportState::FAILED: + return "FAILED"; + case ExportState::CANCELLED: + return "CANCELLED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ExportStateMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportStatus.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportStatus.cpp new file mode 100644 index 00000000000..a538ba8939e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportStatus.cpp @@ -0,0 +1,103 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ExportStatus::ExportStatus() : + m_completionTimestampHasBeenSet(false), + m_errorMessageHasBeenSet(false), + m_state(ExportState::NOT_SET), + m_stateHasBeenSet(false), + m_submissionTimestampHasBeenSet(false) +{ +} + +ExportStatus::ExportStatus(JsonView jsonValue) : + m_completionTimestampHasBeenSet(false), + m_errorMessageHasBeenSet(false), + m_state(ExportState::NOT_SET), + m_stateHasBeenSet(false), + m_submissionTimestampHasBeenSet(false) +{ + *this = jsonValue; +} + +ExportStatus& ExportStatus::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CompletionTimestamp")) + { + m_completionTimestamp = jsonValue.GetDouble("CompletionTimestamp"); + + m_completionTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("ErrorMessage")) + { + m_errorMessage = jsonValue.GetString("ErrorMessage"); + + m_errorMessageHasBeenSet = true; + } + + if(jsonValue.ValueExists("State")) + { + m_state = ExportStateMapper::GetExportStateForName(jsonValue.GetString("State")); + + m_stateHasBeenSet = true; + } + + if(jsonValue.ValueExists("SubmissionTimestamp")) + { + m_submissionTimestamp = jsonValue.GetDouble("SubmissionTimestamp"); + + m_submissionTimestampHasBeenSet = true; + } + + return *this; +} + +JsonValue ExportStatus::Jsonize() const +{ + JsonValue payload; + + if(m_completionTimestampHasBeenSet) + { + payload.WithDouble("CompletionTimestamp", m_completionTimestamp.SecondsWithMSPrecision()); + } + + if(m_errorMessageHasBeenSet) + { + payload.WithString("ErrorMessage", m_errorMessage); + + } + + if(m_stateHasBeenSet) + { + payload.WithString("State", ExportStateMapper::GetNameForExportState(m_state)); + } + + if(m_submissionTimestampHasBeenSet) + { + payload.WithDouble("SubmissionTimestamp", m_submissionTimestamp.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportSummary.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportSummary.cpp new file mode 100644 index 00000000000..bc3d4a5b9ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ExportSummary.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ExportSummary::ExportSummary() : + m_exportIdHasBeenSet(false), + m_statusHasBeenSet(false) +{ +} + +ExportSummary::ExportSummary(JsonView jsonValue) : + m_exportIdHasBeenSet(false), + m_statusHasBeenSet(false) +{ + *this = jsonValue; +} + +ExportSummary& ExportSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ExportId")) + { + m_exportId = jsonValue.GetString("ExportId"); + + m_exportIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = jsonValue.GetObject("Status"); + + m_statusHasBeenSet = true; + } + + return *this; +} + +JsonValue ExportSummary::Jsonize() const +{ + JsonValue payload; + + if(m_exportIdHasBeenSet) + { + payload.WithString("ExportId", m_exportId); + + } + + if(m_statusHasBeenSet) + { + payload.WithObject("Status", m_status.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonInstanceRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonInstanceRequest.cpp new file mode 100644 index 00000000000..f28d93ccbfb --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonInstanceRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetAddonInstanceRequest::GetAddonInstanceRequest() : + m_addonInstanceIdHasBeenSet(false) +{ +} + +Aws::String GetAddonInstanceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_addonInstanceIdHasBeenSet) + { + payload.WithString("AddonInstanceId", m_addonInstanceId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetAddonInstanceRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetAddonInstance")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonInstanceResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonInstanceResult.cpp new file mode 100644 index 00000000000..b8f85ac1a31 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonInstanceResult.cpp @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetAddonInstanceResult::GetAddonInstanceResult() +{ +} + +GetAddonInstanceResult::GetAddonInstanceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetAddonInstanceResult& GetAddonInstanceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AddonInstanceArn")) + { + m_addonInstanceArn = jsonValue.GetString("AddonInstanceArn"); + + } + + if(jsonValue.ValueExists("AddonName")) + { + m_addonName = jsonValue.GetString("AddonName"); + + } + + if(jsonValue.ValueExists("AddonSubscriptionId")) + { + m_addonSubscriptionId = jsonValue.GetString("AddonSubscriptionId"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonSubscriptionRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonSubscriptionRequest.cpp new file mode 100644 index 00000000000..ec4b6f8bc78 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonSubscriptionRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetAddonSubscriptionRequest::GetAddonSubscriptionRequest() : + m_addonSubscriptionIdHasBeenSet(false) +{ +} + +Aws::String GetAddonSubscriptionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_addonSubscriptionIdHasBeenSet) + { + payload.WithString("AddonSubscriptionId", m_addonSubscriptionId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetAddonSubscriptionRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetAddonSubscription")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonSubscriptionResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonSubscriptionResult.cpp new file mode 100644 index 00000000000..1cc4c6d1287 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetAddonSubscriptionResult.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetAddonSubscriptionResult::GetAddonSubscriptionResult() +{ +} + +GetAddonSubscriptionResult::GetAddonSubscriptionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetAddonSubscriptionResult& GetAddonSubscriptionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AddonName")) + { + m_addonName = jsonValue.GetString("AddonName"); + + } + + if(jsonValue.ValueExists("AddonSubscriptionArn")) + { + m_addonSubscriptionArn = jsonValue.GetString("AddonSubscriptionArn"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveExportRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveExportRequest.cpp new file mode 100644 index 00000000000..75bd0db635a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveExportRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetArchiveExportRequest::GetArchiveExportRequest() : + m_exportIdHasBeenSet(false) +{ +} + +Aws::String GetArchiveExportRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_exportIdHasBeenSet) + { + payload.WithString("ExportId", m_exportId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetArchiveExportRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetArchiveExport")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveExportResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveExportResult.cpp new file mode 100644 index 00000000000..83e5eb4007c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveExportResult.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetArchiveExportResult::GetArchiveExportResult() : + m_maxResults(0) +{ +} + +GetArchiveExportResult::GetArchiveExportResult(const Aws::AmazonWebServiceResult& result) : + m_maxResults(0) +{ + *this = result; +} + +GetArchiveExportResult& GetArchiveExportResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ArchiveId")) + { + m_archiveId = jsonValue.GetString("ArchiveId"); + + } + + if(jsonValue.ValueExists("ExportDestinationConfiguration")) + { + m_exportDestinationConfiguration = jsonValue.GetObject("ExportDestinationConfiguration"); + + } + + if(jsonValue.ValueExists("Filters")) + { + m_filters = jsonValue.GetObject("Filters"); + + } + + if(jsonValue.ValueExists("FromTimestamp")) + { + m_fromTimestamp = jsonValue.GetDouble("FromTimestamp"); + + } + + if(jsonValue.ValueExists("MaxResults")) + { + m_maxResults = jsonValue.GetInteger("MaxResults"); + + } + + if(jsonValue.ValueExists("Status")) + { + m_status = jsonValue.GetObject("Status"); + + } + + if(jsonValue.ValueExists("ToTimestamp")) + { + m_toTimestamp = jsonValue.GetDouble("ToTimestamp"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageContentRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageContentRequest.cpp new file mode 100644 index 00000000000..fbda3c4fd88 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageContentRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetArchiveMessageContentRequest::GetArchiveMessageContentRequest() : + m_archivedMessageIdHasBeenSet(false) +{ +} + +Aws::String GetArchiveMessageContentRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archivedMessageIdHasBeenSet) + { + payload.WithString("ArchivedMessageId", m_archivedMessageId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetArchiveMessageContentRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetArchiveMessageContent")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageContentResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageContentResult.cpp new file mode 100644 index 00000000000..d26ad2b9e01 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageContentResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetArchiveMessageContentResult::GetArchiveMessageContentResult() +{ +} + +GetArchiveMessageContentResult::GetArchiveMessageContentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetArchiveMessageContentResult& GetArchiveMessageContentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Body")) + { + m_body = jsonValue.GetObject("Body"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageRequest.cpp new file mode 100644 index 00000000000..3a258db9f0e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetArchiveMessageRequest::GetArchiveMessageRequest() : + m_archivedMessageIdHasBeenSet(false) +{ +} + +Aws::String GetArchiveMessageRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archivedMessageIdHasBeenSet) + { + payload.WithString("ArchivedMessageId", m_archivedMessageId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetArchiveMessageRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetArchiveMessage")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageResult.cpp new file mode 100644 index 00000000000..a7b20ae55f2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveMessageResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetArchiveMessageResult::GetArchiveMessageResult() +{ +} + +GetArchiveMessageResult::GetArchiveMessageResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetArchiveMessageResult& GetArchiveMessageResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("MessageDownloadLink")) + { + m_messageDownloadLink = jsonValue.GetString("MessageDownloadLink"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveRequest.cpp new file mode 100644 index 00000000000..b4505159f6e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetArchiveRequest::GetArchiveRequest() : + m_archiveIdHasBeenSet(false) +{ +} + +Aws::String GetArchiveRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archiveIdHasBeenSet) + { + payload.WithString("ArchiveId", m_archiveId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetArchiveRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetArchive")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveResult.cpp new file mode 100644 index 00000000000..8743454e99f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveResult.cpp @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetArchiveResult::GetArchiveResult() : + m_archiveState(ArchiveState::NOT_SET) +{ +} + +GetArchiveResult::GetArchiveResult(const Aws::AmazonWebServiceResult& result) : + m_archiveState(ArchiveState::NOT_SET) +{ + *this = result; +} + +GetArchiveResult& GetArchiveResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ArchiveArn")) + { + m_archiveArn = jsonValue.GetString("ArchiveArn"); + + } + + if(jsonValue.ValueExists("ArchiveId")) + { + m_archiveId = jsonValue.GetString("ArchiveId"); + + } + + if(jsonValue.ValueExists("ArchiveName")) + { + m_archiveName = jsonValue.GetString("ArchiveName"); + + } + + if(jsonValue.ValueExists("ArchiveState")) + { + m_archiveState = ArchiveStateMapper::GetArchiveStateForName(jsonValue.GetString("ArchiveState")); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + if(jsonValue.ValueExists("KmsKeyArn")) + { + m_kmsKeyArn = jsonValue.GetString("KmsKeyArn"); + + } + + if(jsonValue.ValueExists("LastUpdatedTimestamp")) + { + m_lastUpdatedTimestamp = jsonValue.GetDouble("LastUpdatedTimestamp"); + + } + + if(jsonValue.ValueExists("Retention")) + { + m_retention = jsonValue.GetObject("Retention"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchRequest.cpp new file mode 100644 index 00000000000..c3ec70ddf2c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetArchiveSearchRequest::GetArchiveSearchRequest() : + m_searchIdHasBeenSet(false) +{ +} + +Aws::String GetArchiveSearchRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_searchIdHasBeenSet) + { + payload.WithString("SearchId", m_searchId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetArchiveSearchRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetArchiveSearch")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResult.cpp new file mode 100644 index 00000000000..38a3644e101 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResult.cpp @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetArchiveSearchResult::GetArchiveSearchResult() : + m_maxResults(0) +{ +} + +GetArchiveSearchResult::GetArchiveSearchResult(const Aws::AmazonWebServiceResult& result) : + m_maxResults(0) +{ + *this = result; +} + +GetArchiveSearchResult& GetArchiveSearchResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ArchiveId")) + { + m_archiveId = jsonValue.GetString("ArchiveId"); + + } + + if(jsonValue.ValueExists("Filters")) + { + m_filters = jsonValue.GetObject("Filters"); + + } + + if(jsonValue.ValueExists("FromTimestamp")) + { + m_fromTimestamp = jsonValue.GetDouble("FromTimestamp"); + + } + + if(jsonValue.ValueExists("MaxResults")) + { + m_maxResults = jsonValue.GetInteger("MaxResults"); + + } + + if(jsonValue.ValueExists("Status")) + { + m_status = jsonValue.GetObject("Status"); + + } + + if(jsonValue.ValueExists("ToTimestamp")) + { + m_toTimestamp = jsonValue.GetDouble("ToTimestamp"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResultsRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResultsRequest.cpp new file mode 100644 index 00000000000..dd6b08624f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResultsRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetArchiveSearchResultsRequest::GetArchiveSearchResultsRequest() : + m_searchIdHasBeenSet(false) +{ +} + +Aws::String GetArchiveSearchResultsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_searchIdHasBeenSet) + { + payload.WithString("SearchId", m_searchId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetArchiveSearchResultsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetArchiveSearchResults")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResultsResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResultsResult.cpp new file mode 100644 index 00000000000..c8feafbaa60 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetArchiveSearchResultsResult.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetArchiveSearchResultsResult::GetArchiveSearchResultsResult() +{ +} + +GetArchiveSearchResultsResult::GetArchiveSearchResultsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetArchiveSearchResultsResult& GetArchiveSearchResultsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Rows")) + { + Aws::Utils::Array rowsJsonList = jsonValue.GetArray("Rows"); + for(unsigned rowsIndex = 0; rowsIndex < rowsJsonList.GetLength(); ++rowsIndex) + { + m_rows.push_back(rowsJsonList[rowsIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetIngressPointRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetIngressPointRequest.cpp new file mode 100644 index 00000000000..f84b6713393 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetIngressPointRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetIngressPointRequest::GetIngressPointRequest() : + m_ingressPointIdHasBeenSet(false) +{ +} + +Aws::String GetIngressPointRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_ingressPointIdHasBeenSet) + { + payload.WithString("IngressPointId", m_ingressPointId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetIngressPointRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetIngressPoint")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetIngressPointResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetIngressPointResult.cpp new file mode 100644 index 00000000000..113f3f570f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetIngressPointResult.cpp @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetIngressPointResult::GetIngressPointResult() : + m_status(IngressPointStatus::NOT_SET), + m_type(IngressPointType::NOT_SET) +{ +} + +GetIngressPointResult::GetIngressPointResult(const Aws::AmazonWebServiceResult& result) : + m_status(IngressPointStatus::NOT_SET), + m_type(IngressPointType::NOT_SET) +{ + *this = result; +} + +GetIngressPointResult& GetIngressPointResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ARecord")) + { + m_aRecord = jsonValue.GetString("ARecord"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + if(jsonValue.ValueExists("IngressPointArn")) + { + m_ingressPointArn = jsonValue.GetString("IngressPointArn"); + + } + + if(jsonValue.ValueExists("IngressPointAuthConfiguration")) + { + m_ingressPointAuthConfiguration = jsonValue.GetObject("IngressPointAuthConfiguration"); + + } + + if(jsonValue.ValueExists("IngressPointId")) + { + m_ingressPointId = jsonValue.GetString("IngressPointId"); + + } + + if(jsonValue.ValueExists("IngressPointName")) + { + m_ingressPointName = jsonValue.GetString("IngressPointName"); + + } + + if(jsonValue.ValueExists("LastUpdatedTimestamp")) + { + m_lastUpdatedTimestamp = jsonValue.GetDouble("LastUpdatedTimestamp"); + + } + + if(jsonValue.ValueExists("RuleSetId")) + { + m_ruleSetId = jsonValue.GetString("RuleSetId"); + + } + + if(jsonValue.ValueExists("Status")) + { + m_status = IngressPointStatusMapper::GetIngressPointStatusForName(jsonValue.GetString("Status")); + + } + + if(jsonValue.ValueExists("TrafficPolicyId")) + { + m_trafficPolicyId = jsonValue.GetString("TrafficPolicyId"); + + } + + if(jsonValue.ValueExists("Type")) + { + m_type = IngressPointTypeMapper::GetIngressPointTypeForName(jsonValue.GetString("Type")); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRelayRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRelayRequest.cpp new file mode 100644 index 00000000000..9b3dc751b55 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRelayRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetRelayRequest::GetRelayRequest() : + m_relayIdHasBeenSet(false) +{ +} + +Aws::String GetRelayRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_relayIdHasBeenSet) + { + payload.WithString("RelayId", m_relayId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetRelayRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetRelay")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRelayResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRelayResult.cpp new file mode 100644 index 00000000000..7966167b626 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRelayResult.cpp @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetRelayResult::GetRelayResult() : + m_serverPort(0) +{ +} + +GetRelayResult::GetRelayResult(const Aws::AmazonWebServiceResult& result) : + m_serverPort(0) +{ + *this = result; +} + +GetRelayResult& GetRelayResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Authentication")) + { + m_authentication = jsonValue.GetObject("Authentication"); + + } + + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + if(jsonValue.ValueExists("LastModifiedTimestamp")) + { + m_lastModifiedTimestamp = jsonValue.GetDouble("LastModifiedTimestamp"); + + } + + if(jsonValue.ValueExists("RelayArn")) + { + m_relayArn = jsonValue.GetString("RelayArn"); + + } + + if(jsonValue.ValueExists("RelayId")) + { + m_relayId = jsonValue.GetString("RelayId"); + + } + + if(jsonValue.ValueExists("RelayName")) + { + m_relayName = jsonValue.GetString("RelayName"); + + } + + if(jsonValue.ValueExists("ServerName")) + { + m_serverName = jsonValue.GetString("ServerName"); + + } + + if(jsonValue.ValueExists("ServerPort")) + { + m_serverPort = jsonValue.GetInteger("ServerPort"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRuleSetRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRuleSetRequest.cpp new file mode 100644 index 00000000000..87ec58b0d74 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRuleSetRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetRuleSetRequest::GetRuleSetRequest() : + m_ruleSetIdHasBeenSet(false) +{ +} + +Aws::String GetRuleSetRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_ruleSetIdHasBeenSet) + { + payload.WithString("RuleSetId", m_ruleSetId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetRuleSetRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetRuleSet")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRuleSetResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRuleSetResult.cpp new file mode 100644 index 00000000000..d4d4d3e1f03 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetRuleSetResult.cpp @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetRuleSetResult::GetRuleSetResult() +{ +} + +GetRuleSetResult::GetRuleSetResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +GetRuleSetResult& GetRuleSetResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("CreatedDate")) + { + m_createdDate = jsonValue.GetDouble("CreatedDate"); + + } + + if(jsonValue.ValueExists("LastModificationDate")) + { + m_lastModificationDate = jsonValue.GetDouble("LastModificationDate"); + + } + + if(jsonValue.ValueExists("RuleSetArn")) + { + m_ruleSetArn = jsonValue.GetString("RuleSetArn"); + + } + + if(jsonValue.ValueExists("RuleSetId")) + { + m_ruleSetId = jsonValue.GetString("RuleSetId"); + + } + + if(jsonValue.ValueExists("RuleSetName")) + { + m_ruleSetName = jsonValue.GetString("RuleSetName"); + + } + + if(jsonValue.ValueExists("Rules")) + { + Aws::Utils::Array rulesJsonList = jsonValue.GetArray("Rules"); + for(unsigned rulesIndex = 0; rulesIndex < rulesJsonList.GetLength(); ++rulesIndex) + { + m_rules.push_back(rulesJsonList[rulesIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetTrafficPolicyRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetTrafficPolicyRequest.cpp new file mode 100644 index 00000000000..904064abe2e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetTrafficPolicyRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetTrafficPolicyRequest::GetTrafficPolicyRequest() : + m_trafficPolicyIdHasBeenSet(false) +{ +} + +Aws::String GetTrafficPolicyRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_trafficPolicyIdHasBeenSet) + { + payload.WithString("TrafficPolicyId", m_trafficPolicyId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection GetTrafficPolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.GetTrafficPolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/GetTrafficPolicyResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetTrafficPolicyResult.cpp new file mode 100644 index 00000000000..a0eed613a4b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/GetTrafficPolicyResult.cpp @@ -0,0 +1,97 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetTrafficPolicyResult::GetTrafficPolicyResult() : + m_defaultAction(AcceptAction::NOT_SET), + m_maxMessageSizeBytes(0) +{ +} + +GetTrafficPolicyResult::GetTrafficPolicyResult(const Aws::AmazonWebServiceResult& result) : + m_defaultAction(AcceptAction::NOT_SET), + m_maxMessageSizeBytes(0) +{ + *this = result; +} + +GetTrafficPolicyResult& GetTrafficPolicyResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("CreatedTimestamp")) + { + m_createdTimestamp = jsonValue.GetDouble("CreatedTimestamp"); + + } + + if(jsonValue.ValueExists("DefaultAction")) + { + m_defaultAction = AcceptActionMapper::GetAcceptActionForName(jsonValue.GetString("DefaultAction")); + + } + + if(jsonValue.ValueExists("LastUpdatedTimestamp")) + { + m_lastUpdatedTimestamp = jsonValue.GetDouble("LastUpdatedTimestamp"); + + } + + if(jsonValue.ValueExists("MaxMessageSizeBytes")) + { + m_maxMessageSizeBytes = jsonValue.GetInteger("MaxMessageSizeBytes"); + + } + + if(jsonValue.ValueExists("PolicyStatements")) + { + Aws::Utils::Array policyStatementsJsonList = jsonValue.GetArray("PolicyStatements"); + for(unsigned policyStatementsIndex = 0; policyStatementsIndex < policyStatementsJsonList.GetLength(); ++policyStatementsIndex) + { + m_policyStatements.push_back(policyStatementsJsonList[policyStatementsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("TrafficPolicyArn")) + { + m_trafficPolicyArn = jsonValue.GetString("TrafficPolicyArn"); + + } + + if(jsonValue.ValueExists("TrafficPolicyId")) + { + m_trafficPolicyId = jsonValue.GetString("TrafficPolicyId"); + + } + + if(jsonValue.ValueExists("TrafficPolicyName")) + { + m_trafficPolicyName = jsonValue.GetString("TrafficPolicyName"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressAnalysis.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressAnalysis.cpp new file mode 100644 index 00000000000..79426d38804 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressAnalysis.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressAnalysis::IngressAnalysis() : + m_analyzerHasBeenSet(false), + m_resultFieldHasBeenSet(false) +{ +} + +IngressAnalysis::IngressAnalysis(JsonView jsonValue) : + m_analyzerHasBeenSet(false), + m_resultFieldHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressAnalysis& IngressAnalysis::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Analyzer")) + { + m_analyzer = jsonValue.GetString("Analyzer"); + + m_analyzerHasBeenSet = true; + } + + if(jsonValue.ValueExists("ResultField")) + { + m_resultField = jsonValue.GetString("ResultField"); + + m_resultFieldHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressAnalysis::Jsonize() const +{ + JsonValue payload; + + if(m_analyzerHasBeenSet) + { + payload.WithString("Analyzer", m_analyzer); + + } + + if(m_resultFieldHasBeenSet) + { + payload.WithString("ResultField", m_resultField); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanExpression.cpp new file mode 100644 index 00000000000..6ea5267fc14 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanExpression.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressBooleanExpression::IngressBooleanExpression() : + m_evaluateHasBeenSet(false), + m_operator(IngressBooleanOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ +} + +IngressBooleanExpression::IngressBooleanExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(IngressBooleanOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressBooleanExpression& IngressBooleanExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = IngressBooleanOperatorMapper::GetIngressBooleanOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressBooleanExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", IngressBooleanOperatorMapper::GetNameForIngressBooleanOperator(m_operator)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanOperator.cpp new file mode 100644 index 00000000000..08d9db278fc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanOperator.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressBooleanOperatorMapper + { + + static const int IS_TRUE_HASH = HashingUtils::HashString("IS_TRUE"); + static const int IS_FALSE_HASH = HashingUtils::HashString("IS_FALSE"); + + + IngressBooleanOperator GetIngressBooleanOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == IS_TRUE_HASH) + { + return IngressBooleanOperator::IS_TRUE; + } + else if (hashCode == IS_FALSE_HASH) + { + return IngressBooleanOperator::IS_FALSE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressBooleanOperator::NOT_SET; + } + + Aws::String GetNameForIngressBooleanOperator(IngressBooleanOperator enumValue) + { + switch(enumValue) + { + case IngressBooleanOperator::NOT_SET: + return {}; + case IngressBooleanOperator::IS_TRUE: + return "IS_TRUE"; + case IngressBooleanOperator::IS_FALSE: + return "IS_FALSE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressBooleanOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanToEvaluate.cpp new file mode 100644 index 00000000000..73d7744b47b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressBooleanToEvaluate.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressBooleanToEvaluate::IngressBooleanToEvaluate() : + m_analysisHasBeenSet(false) +{ +} + +IngressBooleanToEvaluate::IngressBooleanToEvaluate(JsonView jsonValue) : + m_analysisHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressBooleanToEvaluate& IngressBooleanToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Analysis")) + { + m_analysis = jsonValue.GetObject("Analysis"); + + m_analysisHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressBooleanToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_analysisHasBeenSet) + { + payload.WithObject("Analysis", m_analysis.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpOperator.cpp new file mode 100644 index 00000000000..8f77ecebe3e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpOperator.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressIpOperatorMapper + { + + static const int CIDR_MATCHES_HASH = HashingUtils::HashString("CIDR_MATCHES"); + static const int NOT_CIDR_MATCHES_HASH = HashingUtils::HashString("NOT_CIDR_MATCHES"); + + + IngressIpOperator GetIngressIpOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CIDR_MATCHES_HASH) + { + return IngressIpOperator::CIDR_MATCHES; + } + else if (hashCode == NOT_CIDR_MATCHES_HASH) + { + return IngressIpOperator::NOT_CIDR_MATCHES; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressIpOperator::NOT_SET; + } + + Aws::String GetNameForIngressIpOperator(IngressIpOperator enumValue) + { + switch(enumValue) + { + case IngressIpOperator::NOT_SET: + return {}; + case IngressIpOperator::CIDR_MATCHES: + return "CIDR_MATCHES"; + case IngressIpOperator::NOT_CIDR_MATCHES: + return "NOT_CIDR_MATCHES"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressIpOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpToEvaluate.cpp new file mode 100644 index 00000000000..2d50c34def1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressIpToEvaluate::IngressIpToEvaluate() : + m_attribute(IngressIpv4Attribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +IngressIpToEvaluate::IngressIpToEvaluate(JsonView jsonValue) : + m_attribute(IngressIpv4Attribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressIpToEvaluate& IngressIpToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = IngressIpv4AttributeMapper::GetIngressIpv4AttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressIpToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", IngressIpv4AttributeMapper::GetNameForIngressIpv4Attribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpv4Attribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpv4Attribute.cpp new file mode 100644 index 00000000000..fec3ae5774a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpv4Attribute.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressIpv4AttributeMapper + { + + static const int SENDER_IP_HASH = HashingUtils::HashString("SENDER_IP"); + + + IngressIpv4Attribute GetIngressIpv4AttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SENDER_IP_HASH) + { + return IngressIpv4Attribute::SENDER_IP; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressIpv4Attribute::NOT_SET; + } + + Aws::String GetNameForIngressIpv4Attribute(IngressIpv4Attribute enumValue) + { + switch(enumValue) + { + case IngressIpv4Attribute::NOT_SET: + return {}; + case IngressIpv4Attribute::SENDER_IP: + return "SENDER_IP"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressIpv4AttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpv4Expression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpv4Expression.cpp new file mode 100644 index 00000000000..2f043887b64 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressIpv4Expression.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressIpv4Expression::IngressIpv4Expression() : + m_evaluateHasBeenSet(false), + m_operator(IngressIpOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +IngressIpv4Expression::IngressIpv4Expression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(IngressIpOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressIpv4Expression& IngressIpv4Expression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = IngressIpOperatorMapper::GetIngressIpOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(valuesJsonList[valuesIndex].AsString()); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressIpv4Expression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", IngressIpOperatorMapper::GetNameForIngressIpOperator(m_operator)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(m_values[valuesIndex]); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPoint.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPoint.cpp new file mode 100644 index 00000000000..1cc5cdf85ea --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPoint.cpp @@ -0,0 +1,121 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressPoint::IngressPoint() : + m_aRecordHasBeenSet(false), + m_ingressPointIdHasBeenSet(false), + m_ingressPointNameHasBeenSet(false), + m_status(IngressPointStatus::NOT_SET), + m_statusHasBeenSet(false), + m_type(IngressPointType::NOT_SET), + m_typeHasBeenSet(false) +{ +} + +IngressPoint::IngressPoint(JsonView jsonValue) : + m_aRecordHasBeenSet(false), + m_ingressPointIdHasBeenSet(false), + m_ingressPointNameHasBeenSet(false), + m_status(IngressPointStatus::NOT_SET), + m_statusHasBeenSet(false), + m_type(IngressPointType::NOT_SET), + m_typeHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressPoint& IngressPoint::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ARecord")) + { + m_aRecord = jsonValue.GetString("ARecord"); + + m_aRecordHasBeenSet = true; + } + + if(jsonValue.ValueExists("IngressPointId")) + { + m_ingressPointId = jsonValue.GetString("IngressPointId"); + + m_ingressPointIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("IngressPointName")) + { + m_ingressPointName = jsonValue.GetString("IngressPointName"); + + m_ingressPointNameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = IngressPointStatusMapper::GetIngressPointStatusForName(jsonValue.GetString("Status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("Type")) + { + m_type = IngressPointTypeMapper::GetIngressPointTypeForName(jsonValue.GetString("Type")); + + m_typeHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressPoint::Jsonize() const +{ + JsonValue payload; + + if(m_aRecordHasBeenSet) + { + payload.WithString("ARecord", m_aRecord); + + } + + if(m_ingressPointIdHasBeenSet) + { + payload.WithString("IngressPointId", m_ingressPointId); + + } + + if(m_ingressPointNameHasBeenSet) + { + payload.WithString("IngressPointName", m_ingressPointName); + + } + + if(m_statusHasBeenSet) + { + payload.WithString("Status", IngressPointStatusMapper::GetNameForIngressPointStatus(m_status)); + } + + if(m_typeHasBeenSet) + { + payload.WithString("Type", IngressPointTypeMapper::GetNameForIngressPointType(m_type)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointAuthConfiguration.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointAuthConfiguration.cpp new file mode 100644 index 00000000000..ea8768e40e6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointAuthConfiguration.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressPointAuthConfiguration::IngressPointAuthConfiguration() : + m_ingressPointPasswordConfigurationHasBeenSet(false), + m_secretArnHasBeenSet(false) +{ +} + +IngressPointAuthConfiguration::IngressPointAuthConfiguration(JsonView jsonValue) : + m_ingressPointPasswordConfigurationHasBeenSet(false), + m_secretArnHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressPointAuthConfiguration& IngressPointAuthConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("IngressPointPasswordConfiguration")) + { + m_ingressPointPasswordConfiguration = jsonValue.GetObject("IngressPointPasswordConfiguration"); + + m_ingressPointPasswordConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("SecretArn")) + { + m_secretArn = jsonValue.GetString("SecretArn"); + + m_secretArnHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressPointAuthConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_ingressPointPasswordConfigurationHasBeenSet) + { + payload.WithObject("IngressPointPasswordConfiguration", m_ingressPointPasswordConfiguration.Jsonize()); + + } + + if(m_secretArnHasBeenSet) + { + payload.WithString("SecretArn", m_secretArn); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointConfiguration.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointConfiguration.cpp new file mode 100644 index 00000000000..bf2205405a1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointConfiguration.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressPointConfiguration::IngressPointConfiguration() : + m_secretArnHasBeenSet(false), + m_smtpPasswordHasBeenSet(false) +{ +} + +IngressPointConfiguration::IngressPointConfiguration(JsonView jsonValue) : + m_secretArnHasBeenSet(false), + m_smtpPasswordHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressPointConfiguration& IngressPointConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SecretArn")) + { + m_secretArn = jsonValue.GetString("SecretArn"); + + m_secretArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("SmtpPassword")) + { + m_smtpPassword = jsonValue.GetString("SmtpPassword"); + + m_smtpPasswordHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressPointConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_secretArnHasBeenSet) + { + payload.WithString("SecretArn", m_secretArn); + + } + + if(m_smtpPasswordHasBeenSet) + { + payload.WithString("SmtpPassword", m_smtpPassword); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointPasswordConfiguration.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointPasswordConfiguration.cpp new file mode 100644 index 00000000000..5dcda2fc6f0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointPasswordConfiguration.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressPointPasswordConfiguration::IngressPointPasswordConfiguration() : + m_previousSmtpPasswordExpiryTimestampHasBeenSet(false), + m_previousSmtpPasswordVersionHasBeenSet(false), + m_smtpPasswordVersionHasBeenSet(false) +{ +} + +IngressPointPasswordConfiguration::IngressPointPasswordConfiguration(JsonView jsonValue) : + m_previousSmtpPasswordExpiryTimestampHasBeenSet(false), + m_previousSmtpPasswordVersionHasBeenSet(false), + m_smtpPasswordVersionHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressPointPasswordConfiguration& IngressPointPasswordConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("PreviousSmtpPasswordExpiryTimestamp")) + { + m_previousSmtpPasswordExpiryTimestamp = jsonValue.GetDouble("PreviousSmtpPasswordExpiryTimestamp"); + + m_previousSmtpPasswordExpiryTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("PreviousSmtpPasswordVersion")) + { + m_previousSmtpPasswordVersion = jsonValue.GetString("PreviousSmtpPasswordVersion"); + + m_previousSmtpPasswordVersionHasBeenSet = true; + } + + if(jsonValue.ValueExists("SmtpPasswordVersion")) + { + m_smtpPasswordVersion = jsonValue.GetString("SmtpPasswordVersion"); + + m_smtpPasswordVersionHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressPointPasswordConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_previousSmtpPasswordExpiryTimestampHasBeenSet) + { + payload.WithDouble("PreviousSmtpPasswordExpiryTimestamp", m_previousSmtpPasswordExpiryTimestamp.SecondsWithMSPrecision()); + } + + if(m_previousSmtpPasswordVersionHasBeenSet) + { + payload.WithString("PreviousSmtpPasswordVersion", m_previousSmtpPasswordVersion); + + } + + if(m_smtpPasswordVersionHasBeenSet) + { + payload.WithString("SmtpPasswordVersion", m_smtpPasswordVersion); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointStatus.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointStatus.cpp new file mode 100644 index 00000000000..d2c5dfe3fa6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointStatus.cpp @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressPointStatusMapper + { + + static const int PROVISIONING_HASH = HashingUtils::HashString("PROVISIONING"); + static const int DEPROVISIONING_HASH = HashingUtils::HashString("DEPROVISIONING"); + static const int UPDATING_HASH = HashingUtils::HashString("UPDATING"); + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + + + IngressPointStatus GetIngressPointStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PROVISIONING_HASH) + { + return IngressPointStatus::PROVISIONING; + } + else if (hashCode == DEPROVISIONING_HASH) + { + return IngressPointStatus::DEPROVISIONING; + } + else if (hashCode == UPDATING_HASH) + { + return IngressPointStatus::UPDATING; + } + else if (hashCode == ACTIVE_HASH) + { + return IngressPointStatus::ACTIVE; + } + else if (hashCode == CLOSED_HASH) + { + return IngressPointStatus::CLOSED; + } + else if (hashCode == FAILED_HASH) + { + return IngressPointStatus::FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressPointStatus::NOT_SET; + } + + Aws::String GetNameForIngressPointStatus(IngressPointStatus enumValue) + { + switch(enumValue) + { + case IngressPointStatus::NOT_SET: + return {}; + case IngressPointStatus::PROVISIONING: + return "PROVISIONING"; + case IngressPointStatus::DEPROVISIONING: + return "DEPROVISIONING"; + case IngressPointStatus::UPDATING: + return "UPDATING"; + case IngressPointStatus::ACTIVE: + return "ACTIVE"; + case IngressPointStatus::CLOSED: + return "CLOSED"; + case IngressPointStatus::FAILED: + return "FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressPointStatusMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointStatusToUpdate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointStatusToUpdate.cpp new file mode 100644 index 00000000000..8e5321c5fa3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointStatusToUpdate.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressPointStatusToUpdateMapper + { + + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int CLOSED_HASH = HashingUtils::HashString("CLOSED"); + + + IngressPointStatusToUpdate GetIngressPointStatusToUpdateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ACTIVE_HASH) + { + return IngressPointStatusToUpdate::ACTIVE; + } + else if (hashCode == CLOSED_HASH) + { + return IngressPointStatusToUpdate::CLOSED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressPointStatusToUpdate::NOT_SET; + } + + Aws::String GetNameForIngressPointStatusToUpdate(IngressPointStatusToUpdate enumValue) + { + switch(enumValue) + { + case IngressPointStatusToUpdate::NOT_SET: + return {}; + case IngressPointStatusToUpdate::ACTIVE: + return "ACTIVE"; + case IngressPointStatusToUpdate::CLOSED: + return "CLOSED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressPointStatusToUpdateMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointType.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointType.cpp new file mode 100644 index 00000000000..86ed32439a5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressPointType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressPointTypeMapper + { + + static const int OPEN_HASH = HashingUtils::HashString("OPEN"); + static const int AUTH_HASH = HashingUtils::HashString("AUTH"); + + + IngressPointType GetIngressPointTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == OPEN_HASH) + { + return IngressPointType::OPEN; + } + else if (hashCode == AUTH_HASH) + { + return IngressPointType::AUTH; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressPointType::NOT_SET; + } + + Aws::String GetNameForIngressPointType(IngressPointType enumValue) + { + switch(enumValue) + { + case IngressPointType::NOT_SET: + return {}; + case IngressPointType::OPEN: + return "OPEN"; + case IngressPointType::AUTH: + return "AUTH"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressPointTypeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringEmailAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringEmailAttribute.cpp new file mode 100644 index 00000000000..78543e4edf1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringEmailAttribute.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressStringEmailAttributeMapper + { + + static const int RECIPIENT_HASH = HashingUtils::HashString("RECIPIENT"); + + + IngressStringEmailAttribute GetIngressStringEmailAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == RECIPIENT_HASH) + { + return IngressStringEmailAttribute::RECIPIENT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressStringEmailAttribute::NOT_SET; + } + + Aws::String GetNameForIngressStringEmailAttribute(IngressStringEmailAttribute enumValue) + { + switch(enumValue) + { + case IngressStringEmailAttribute::NOT_SET: + return {}; + case IngressStringEmailAttribute::RECIPIENT: + return "RECIPIENT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressStringEmailAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringExpression.cpp new file mode 100644 index 00000000000..ab1d2ccc4aa --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringExpression.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressStringExpression::IngressStringExpression() : + m_evaluateHasBeenSet(false), + m_operator(IngressStringOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +IngressStringExpression::IngressStringExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(IngressStringOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressStringExpression& IngressStringExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = IngressStringOperatorMapper::GetIngressStringOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(valuesJsonList[valuesIndex].AsString()); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressStringExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", IngressStringOperatorMapper::GetNameForIngressStringOperator(m_operator)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(m_values[valuesIndex]); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringOperator.cpp new file mode 100644 index 00000000000..3cb350836f5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringOperator.cpp @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressStringOperatorMapper + { + + static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); + static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); + static const int ENDS_WITH_HASH = HashingUtils::HashString("ENDS_WITH"); + static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); + + + IngressStringOperator GetIngressStringOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EQUALS_HASH) + { + return IngressStringOperator::EQUALS; + } + else if (hashCode == NOT_EQUALS_HASH) + { + return IngressStringOperator::NOT_EQUALS; + } + else if (hashCode == STARTS_WITH_HASH) + { + return IngressStringOperator::STARTS_WITH; + } + else if (hashCode == ENDS_WITH_HASH) + { + return IngressStringOperator::ENDS_WITH; + } + else if (hashCode == CONTAINS_HASH) + { + return IngressStringOperator::CONTAINS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressStringOperator::NOT_SET; + } + + Aws::String GetNameForIngressStringOperator(IngressStringOperator enumValue) + { + switch(enumValue) + { + case IngressStringOperator::NOT_SET: + return {}; + case IngressStringOperator::EQUALS: + return "EQUALS"; + case IngressStringOperator::NOT_EQUALS: + return "NOT_EQUALS"; + case IngressStringOperator::STARTS_WITH: + return "STARTS_WITH"; + case IngressStringOperator::ENDS_WITH: + return "ENDS_WITH"; + case IngressStringOperator::CONTAINS: + return "CONTAINS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressStringOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringToEvaluate.cpp new file mode 100644 index 00000000000..136856712dc --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressStringToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressStringToEvaluate::IngressStringToEvaluate() : + m_attribute(IngressStringEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +IngressStringToEvaluate::IngressStringToEvaluate(JsonView jsonValue) : + m_attribute(IngressStringEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressStringToEvaluate& IngressStringToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = IngressStringEmailAttributeMapper::GetIngressStringEmailAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressStringToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", IngressStringEmailAttributeMapper::GetNameForIngressStringEmailAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsAttribute.cpp new file mode 100644 index 00000000000..c942ea8cf2c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsAttribute.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressTlsAttributeMapper + { + + static const int TLS_PROTOCOL_HASH = HashingUtils::HashString("TLS_PROTOCOL"); + + + IngressTlsAttribute GetIngressTlsAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == TLS_PROTOCOL_HASH) + { + return IngressTlsAttribute::TLS_PROTOCOL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressTlsAttribute::NOT_SET; + } + + Aws::String GetNameForIngressTlsAttribute(IngressTlsAttribute enumValue) + { + switch(enumValue) + { + case IngressTlsAttribute::NOT_SET: + return {}; + case IngressTlsAttribute::TLS_PROTOCOL: + return "TLS_PROTOCOL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressTlsAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolAttribute.cpp new file mode 100644 index 00000000000..b9508fd0df3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolAttribute.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressTlsProtocolAttributeMapper + { + + static const int TLS1_2_HASH = HashingUtils::HashString("TLS1_2"); + static const int TLS1_3_HASH = HashingUtils::HashString("TLS1_3"); + + + IngressTlsProtocolAttribute GetIngressTlsProtocolAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == TLS1_2_HASH) + { + return IngressTlsProtocolAttribute::TLS1_2; + } + else if (hashCode == TLS1_3_HASH) + { + return IngressTlsProtocolAttribute::TLS1_3; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressTlsProtocolAttribute::NOT_SET; + } + + Aws::String GetNameForIngressTlsProtocolAttribute(IngressTlsProtocolAttribute enumValue) + { + switch(enumValue) + { + case IngressTlsProtocolAttribute::NOT_SET: + return {}; + case IngressTlsProtocolAttribute::TLS1_2: + return "TLS1_2"; + case IngressTlsProtocolAttribute::TLS1_3: + return "TLS1_3"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressTlsProtocolAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolExpression.cpp new file mode 100644 index 00000000000..2170ae29a5f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolExpression.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressTlsProtocolExpression::IngressTlsProtocolExpression() : + m_evaluateHasBeenSet(false), + m_operator(IngressTlsProtocolOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_value(IngressTlsProtocolAttribute::NOT_SET), + m_valueHasBeenSet(false) +{ +} + +IngressTlsProtocolExpression::IngressTlsProtocolExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(IngressTlsProtocolOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_value(IngressTlsProtocolAttribute::NOT_SET), + m_valueHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressTlsProtocolExpression& IngressTlsProtocolExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = IngressTlsProtocolOperatorMapper::GetIngressTlsProtocolOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Value")) + { + m_value = IngressTlsProtocolAttributeMapper::GetIngressTlsProtocolAttributeForName(jsonValue.GetString("Value")); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressTlsProtocolExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", IngressTlsProtocolOperatorMapper::GetNameForIngressTlsProtocolOperator(m_operator)); + } + + if(m_valueHasBeenSet) + { + payload.WithString("Value", IngressTlsProtocolAttributeMapper::GetNameForIngressTlsProtocolAttribute(m_value)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolOperator.cpp new file mode 100644 index 00000000000..6deb871115d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolOperator.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace IngressTlsProtocolOperatorMapper + { + + static const int MINIMUM_TLS_VERSION_HASH = HashingUtils::HashString("MINIMUM_TLS_VERSION"); + static const int IS_HASH = HashingUtils::HashString("IS"); + + + IngressTlsProtocolOperator GetIngressTlsProtocolOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == MINIMUM_TLS_VERSION_HASH) + { + return IngressTlsProtocolOperator::MINIMUM_TLS_VERSION; + } + else if (hashCode == IS_HASH) + { + return IngressTlsProtocolOperator::IS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return IngressTlsProtocolOperator::NOT_SET; + } + + Aws::String GetNameForIngressTlsProtocolOperator(IngressTlsProtocolOperator enumValue) + { + switch(enumValue) + { + case IngressTlsProtocolOperator::NOT_SET: + return {}; + case IngressTlsProtocolOperator::MINIMUM_TLS_VERSION: + return "MINIMUM_TLS_VERSION"; + case IngressTlsProtocolOperator::IS: + return "IS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace IngressTlsProtocolOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolToEvaluate.cpp new file mode 100644 index 00000000000..85e9b78c6d1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/IngressTlsProtocolToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +IngressTlsProtocolToEvaluate::IngressTlsProtocolToEvaluate() : + m_attribute(IngressTlsAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +IngressTlsProtocolToEvaluate::IngressTlsProtocolToEvaluate(JsonView jsonValue) : + m_attribute(IngressTlsAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +IngressTlsProtocolToEvaluate& IngressTlsProtocolToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = IngressTlsAttributeMapper::GetIngressTlsAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue IngressTlsProtocolToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", IngressTlsAttributeMapper::GetNameForIngressTlsAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonInstancesRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonInstancesRequest.cpp new file mode 100644 index 00000000000..18146e07908 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonInstancesRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListAddonInstancesRequest::ListAddonInstancesRequest() : + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListAddonInstancesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListAddonInstancesRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListAddonInstances")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonInstancesResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonInstancesResult.cpp new file mode 100644 index 00000000000..795cede0ed7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonInstancesResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListAddonInstancesResult::ListAddonInstancesResult() +{ +} + +ListAddonInstancesResult::ListAddonInstancesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAddonInstancesResult& ListAddonInstancesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AddonInstances")) + { + Aws::Utils::Array addonInstancesJsonList = jsonValue.GetArray("AddonInstances"); + for(unsigned addonInstancesIndex = 0; addonInstancesIndex < addonInstancesJsonList.GetLength(); ++addonInstancesIndex) + { + m_addonInstances.push_back(addonInstancesJsonList[addonInstancesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonSubscriptionsRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonSubscriptionsRequest.cpp new file mode 100644 index 00000000000..c3e25afacce --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonSubscriptionsRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListAddonSubscriptionsRequest::ListAddonSubscriptionsRequest() : + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListAddonSubscriptionsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListAddonSubscriptionsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListAddonSubscriptions")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonSubscriptionsResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonSubscriptionsResult.cpp new file mode 100644 index 00000000000..fa63edca00f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListAddonSubscriptionsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListAddonSubscriptionsResult::ListAddonSubscriptionsResult() +{ +} + +ListAddonSubscriptionsResult::ListAddonSubscriptionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAddonSubscriptionsResult& ListAddonSubscriptionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("AddonSubscriptions")) + { + Aws::Utils::Array addonSubscriptionsJsonList = jsonValue.GetArray("AddonSubscriptions"); + for(unsigned addonSubscriptionsIndex = 0; addonSubscriptionsIndex < addonSubscriptionsJsonList.GetLength(); ++addonSubscriptionsIndex) + { + m_addonSubscriptions.push_back(addonSubscriptionsJsonList[addonSubscriptionsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveExportsRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveExportsRequest.cpp new file mode 100644 index 00000000000..75f825679dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveExportsRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListArchiveExportsRequest::ListArchiveExportsRequest() : + m_archiveIdHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListArchiveExportsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archiveIdHasBeenSet) + { + payload.WithString("ArchiveId", m_archiveId); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListArchiveExportsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListArchiveExports")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveExportsResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveExportsResult.cpp new file mode 100644 index 00000000000..aee5265966c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveExportsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListArchiveExportsResult::ListArchiveExportsResult() +{ +} + +ListArchiveExportsResult::ListArchiveExportsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListArchiveExportsResult& ListArchiveExportsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Exports")) + { + Aws::Utils::Array exportsJsonList = jsonValue.GetArray("Exports"); + for(unsigned exportsIndex = 0; exportsIndex < exportsJsonList.GetLength(); ++exportsIndex) + { + m_exports.push_back(exportsJsonList[exportsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveSearchesRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveSearchesRequest.cpp new file mode 100644 index 00000000000..d1aa11d80f2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveSearchesRequest.cpp @@ -0,0 +1,58 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListArchiveSearchesRequest::ListArchiveSearchesRequest() : + m_archiveIdHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListArchiveSearchesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archiveIdHasBeenSet) + { + payload.WithString("ArchiveId", m_archiveId); + + } + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListArchiveSearchesRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListArchiveSearches")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveSearchesResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveSearchesResult.cpp new file mode 100644 index 00000000000..ce0ba8aa7dd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchiveSearchesResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListArchiveSearchesResult::ListArchiveSearchesResult() +{ +} + +ListArchiveSearchesResult::ListArchiveSearchesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListArchiveSearchesResult& ListArchiveSearchesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("Searches")) + { + Aws::Utils::Array searchesJsonList = jsonValue.GetArray("Searches"); + for(unsigned searchesIndex = 0; searchesIndex < searchesJsonList.GetLength(); ++searchesIndex) + { + m_searches.push_back(searchesJsonList[searchesIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchivesRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchivesRequest.cpp new file mode 100644 index 00000000000..49baea6d349 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchivesRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListArchivesRequest::ListArchivesRequest() : + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListArchivesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListArchivesRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListArchives")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchivesResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchivesResult.cpp new file mode 100644 index 00000000000..7b8b3e70b71 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListArchivesResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListArchivesResult::ListArchivesResult() +{ +} + +ListArchivesResult::ListArchivesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListArchivesResult& ListArchivesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Archives")) + { + Aws::Utils::Array archivesJsonList = jsonValue.GetArray("Archives"); + for(unsigned archivesIndex = 0; archivesIndex < archivesJsonList.GetLength(); ++archivesIndex) + { + m_archives.push_back(archivesJsonList[archivesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListIngressPointsRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListIngressPointsRequest.cpp new file mode 100644 index 00000000000..de89bed5b2e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListIngressPointsRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListIngressPointsRequest::ListIngressPointsRequest() : + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListIngressPointsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListIngressPointsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListIngressPoints")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListIngressPointsResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListIngressPointsResult.cpp new file mode 100644 index 00000000000..c0f8af286a9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListIngressPointsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListIngressPointsResult::ListIngressPointsResult() +{ +} + +ListIngressPointsResult::ListIngressPointsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListIngressPointsResult& ListIngressPointsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("IngressPoints")) + { + Aws::Utils::Array ingressPointsJsonList = jsonValue.GetArray("IngressPoints"); + for(unsigned ingressPointsIndex = 0; ingressPointsIndex < ingressPointsJsonList.GetLength(); ++ingressPointsIndex) + { + m_ingressPoints.push_back(ingressPointsJsonList[ingressPointsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRelaysRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRelaysRequest.cpp new file mode 100644 index 00000000000..56a95951143 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRelaysRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListRelaysRequest::ListRelaysRequest() : + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListRelaysRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListRelaysRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListRelays")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRelaysResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRelaysResult.cpp new file mode 100644 index 00000000000..e2621d54a0d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRelaysResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListRelaysResult::ListRelaysResult() +{ +} + +ListRelaysResult::ListRelaysResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListRelaysResult& ListRelaysResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("Relays")) + { + Aws::Utils::Array relaysJsonList = jsonValue.GetArray("Relays"); + for(unsigned relaysIndex = 0; relaysIndex < relaysJsonList.GetLength(); ++relaysIndex) + { + m_relays.push_back(relaysJsonList[relaysIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRuleSetsRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRuleSetsRequest.cpp new file mode 100644 index 00000000000..b31d73b52b0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRuleSetsRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListRuleSetsRequest::ListRuleSetsRequest() : + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListRuleSetsRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListRuleSetsRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListRuleSets")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRuleSetsResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRuleSetsResult.cpp new file mode 100644 index 00000000000..b9df8b7610f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListRuleSetsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListRuleSetsResult::ListRuleSetsResult() +{ +} + +ListRuleSetsResult::ListRuleSetsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListRuleSetsResult& ListRuleSetsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("RuleSets")) + { + Aws::Utils::Array ruleSetsJsonList = jsonValue.GetArray("RuleSets"); + for(unsigned ruleSetsIndex = 0; ruleSetsIndex < ruleSetsJsonList.GetLength(); ++ruleSetsIndex) + { + m_ruleSets.push_back(ruleSetsJsonList[ruleSetsIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTagsForResourceRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTagsForResourceRequest.cpp new file mode 100644 index 00000000000..2cb614419b8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTagsForResourceRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListTagsForResourceRequest::ListTagsForResourceRequest() : + m_resourceArnHasBeenSet(false) +{ +} + +Aws::String ListTagsForResourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_resourceArnHasBeenSet) + { + payload.WithString("ResourceArn", m_resourceArn); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListTagsForResourceRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListTagsForResource")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTagsForResourceResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTagsForResourceResult.cpp new file mode 100644 index 00000000000..d0718eb5636 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTagsForResourceResult.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTagsForResourceResult::ListTagsForResourceResult() +{ +} + +ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("Tags")) + { + Aws::Utils::Array tagsJsonList = jsonValue.GetArray("Tags"); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + m_tags.push_back(tagsJsonList[tagsIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTrafficPoliciesRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTrafficPoliciesRequest.cpp new file mode 100644 index 00000000000..cd3e92a458c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTrafficPoliciesRequest.cpp @@ -0,0 +1,51 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +ListTrafficPoliciesRequest::ListTrafficPoliciesRequest() : + m_nextTokenHasBeenSet(false), + m_pageSize(0), + m_pageSizeHasBeenSet(false) +{ +} + +Aws::String ListTrafficPoliciesRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_nextTokenHasBeenSet) + { + payload.WithString("NextToken", m_nextToken); + + } + + if(m_pageSizeHasBeenSet) + { + payload.WithInteger("PageSize", m_pageSize); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection ListTrafficPoliciesRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.ListTrafficPolicies")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTrafficPoliciesResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTrafficPoliciesResult.cpp new file mode 100644 index 00000000000..7c62f444f9b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ListTrafficPoliciesResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListTrafficPoliciesResult::ListTrafficPoliciesResult() +{ +} + +ListTrafficPoliciesResult::ListTrafficPoliciesResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListTrafficPoliciesResult& ListTrafficPoliciesResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("NextToken")) + { + m_nextToken = jsonValue.GetString("NextToken"); + + } + + if(jsonValue.ValueExists("TrafficPolicies")) + { + Aws::Utils::Array trafficPoliciesJsonList = jsonValue.GetArray("TrafficPolicies"); + for(unsigned trafficPoliciesIndex = 0; trafficPoliciesIndex < trafficPoliciesJsonList.GetLength(); ++trafficPoliciesIndex) + { + m_trafficPolicies.push_back(trafficPoliciesJsonList[trafficPoliciesIndex].AsObject()); + } + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/MailFrom.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/MailFrom.cpp new file mode 100644 index 00000000000..72b1bce211f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/MailFrom.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace MailFromMapper + { + + static const int REPLACE_HASH = HashingUtils::HashString("REPLACE"); + static const int PRESERVE_HASH = HashingUtils::HashString("PRESERVE"); + + + MailFrom GetMailFromForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == REPLACE_HASH) + { + return MailFrom::REPLACE; + } + else if (hashCode == PRESERVE_HASH) + { + return MailFrom::PRESERVE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return MailFrom::NOT_SET; + } + + Aws::String GetNameForMailFrom(MailFrom enumValue) + { + switch(enumValue) + { + case MailFrom::NOT_SET: + return {}; + case MailFrom::REPLACE: + return "REPLACE"; + case MailFrom::PRESERVE: + return "PRESERVE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace MailFromMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/MessageBody.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/MessageBody.cpp new file mode 100644 index 00000000000..8550dea3cfd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/MessageBody.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +MessageBody::MessageBody() : + m_htmlHasBeenSet(false), + m_messageMalformed(false), + m_messageMalformedHasBeenSet(false), + m_textHasBeenSet(false) +{ +} + +MessageBody::MessageBody(JsonView jsonValue) : + m_htmlHasBeenSet(false), + m_messageMalformed(false), + m_messageMalformedHasBeenSet(false), + m_textHasBeenSet(false) +{ + *this = jsonValue; +} + +MessageBody& MessageBody::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Html")) + { + m_html = jsonValue.GetString("Html"); + + m_htmlHasBeenSet = true; + } + + if(jsonValue.ValueExists("MessageMalformed")) + { + m_messageMalformed = jsonValue.GetBool("MessageMalformed"); + + m_messageMalformedHasBeenSet = true; + } + + if(jsonValue.ValueExists("Text")) + { + m_text = jsonValue.GetString("Text"); + + m_textHasBeenSet = true; + } + + return *this; +} + +JsonValue MessageBody::Jsonize() const +{ + JsonValue payload; + + if(m_htmlHasBeenSet) + { + payload.WithString("Html", m_html); + + } + + if(m_messageMalformedHasBeenSet) + { + payload.WithBool("MessageMalformed", m_messageMalformed); + + } + + if(m_textHasBeenSet) + { + payload.WithString("Text", m_text); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/NoAuthentication.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/NoAuthentication.cpp new file mode 100644 index 00000000000..76566954455 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/NoAuthentication.cpp @@ -0,0 +1,45 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +NoAuthentication::NoAuthentication() +{ +} + +NoAuthentication::NoAuthentication(JsonView jsonValue) +{ + *this = jsonValue; +} + +NoAuthentication& NoAuthentication::operator =(JsonView jsonValue) +{ + AWS_UNREFERENCED_PARAM(jsonValue); + return *this; +} + +JsonValue NoAuthentication::Jsonize() const +{ + JsonValue payload; + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/PolicyCondition.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/PolicyCondition.cpp new file mode 100644 index 00000000000..d62f6f32cac --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/PolicyCondition.cpp @@ -0,0 +1,104 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +PolicyCondition::PolicyCondition() : + m_booleanExpressionHasBeenSet(false), + m_ipExpressionHasBeenSet(false), + m_stringExpressionHasBeenSet(false), + m_tlsExpressionHasBeenSet(false) +{ +} + +PolicyCondition::PolicyCondition(JsonView jsonValue) : + m_booleanExpressionHasBeenSet(false), + m_ipExpressionHasBeenSet(false), + m_stringExpressionHasBeenSet(false), + m_tlsExpressionHasBeenSet(false) +{ + *this = jsonValue; +} + +PolicyCondition& PolicyCondition::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("BooleanExpression")) + { + m_booleanExpression = jsonValue.GetObject("BooleanExpression"); + + m_booleanExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("IpExpression")) + { + m_ipExpression = jsonValue.GetObject("IpExpression"); + + m_ipExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("StringExpression")) + { + m_stringExpression = jsonValue.GetObject("StringExpression"); + + m_stringExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("TlsExpression")) + { + m_tlsExpression = jsonValue.GetObject("TlsExpression"); + + m_tlsExpressionHasBeenSet = true; + } + + return *this; +} + +JsonValue PolicyCondition::Jsonize() const +{ + JsonValue payload; + + if(m_booleanExpressionHasBeenSet) + { + payload.WithObject("BooleanExpression", m_booleanExpression.Jsonize()); + + } + + if(m_ipExpressionHasBeenSet) + { + payload.WithObject("IpExpression", m_ipExpression.Jsonize()); + + } + + if(m_stringExpressionHasBeenSet) + { + payload.WithObject("StringExpression", m_stringExpression.Jsonize()); + + } + + if(m_tlsExpressionHasBeenSet) + { + payload.WithObject("TlsExpression", m_tlsExpression.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/PolicyStatement.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/PolicyStatement.cpp new file mode 100644 index 00000000000..c35c2e6cfef --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/PolicyStatement.cpp @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +PolicyStatement::PolicyStatement() : + m_action(AcceptAction::NOT_SET), + m_actionHasBeenSet(false), + m_conditionsHasBeenSet(false) +{ +} + +PolicyStatement::PolicyStatement(JsonView jsonValue) : + m_action(AcceptAction::NOT_SET), + m_actionHasBeenSet(false), + m_conditionsHasBeenSet(false) +{ + *this = jsonValue; +} + +PolicyStatement& PolicyStatement::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Action")) + { + m_action = AcceptActionMapper::GetAcceptActionForName(jsonValue.GetString("Action")); + + m_actionHasBeenSet = true; + } + + if(jsonValue.ValueExists("Conditions")) + { + Aws::Utils::Array conditionsJsonList = jsonValue.GetArray("Conditions"); + for(unsigned conditionsIndex = 0; conditionsIndex < conditionsJsonList.GetLength(); ++conditionsIndex) + { + m_conditions.push_back(conditionsJsonList[conditionsIndex].AsObject()); + } + m_conditionsHasBeenSet = true; + } + + return *this; +} + +JsonValue PolicyStatement::Jsonize() const +{ + JsonValue payload; + + if(m_actionHasBeenSet) + { + payload.WithString("Action", AcceptActionMapper::GetNameForAcceptAction(m_action)); + } + + if(m_conditionsHasBeenSet) + { + Aws::Utils::Array conditionsJsonList(m_conditions.size()); + for(unsigned conditionsIndex = 0; conditionsIndex < conditionsJsonList.GetLength(); ++conditionsIndex) + { + conditionsJsonList[conditionsIndex].AsObject(m_conditions[conditionsIndex].Jsonize()); + } + payload.WithArray("Conditions", std::move(conditionsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/Relay.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/Relay.cpp new file mode 100644 index 00000000000..58e0c531253 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/Relay.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +Relay::Relay() : + m_lastModifiedTimestampHasBeenSet(false), + m_relayIdHasBeenSet(false), + m_relayNameHasBeenSet(false) +{ +} + +Relay::Relay(JsonView jsonValue) : + m_lastModifiedTimestampHasBeenSet(false), + m_relayIdHasBeenSet(false), + m_relayNameHasBeenSet(false) +{ + *this = jsonValue; +} + +Relay& Relay::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("LastModifiedTimestamp")) + { + m_lastModifiedTimestamp = jsonValue.GetDouble("LastModifiedTimestamp"); + + m_lastModifiedTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("RelayId")) + { + m_relayId = jsonValue.GetString("RelayId"); + + m_relayIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("RelayName")) + { + m_relayName = jsonValue.GetString("RelayName"); + + m_relayNameHasBeenSet = true; + } + + return *this; +} + +JsonValue Relay::Jsonize() const +{ + JsonValue payload; + + if(m_lastModifiedTimestampHasBeenSet) + { + payload.WithDouble("LastModifiedTimestamp", m_lastModifiedTimestamp.SecondsWithMSPrecision()); + } + + if(m_relayIdHasBeenSet) + { + payload.WithString("RelayId", m_relayId); + + } + + if(m_relayNameHasBeenSet) + { + payload.WithString("RelayName", m_relayName); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RelayAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RelayAction.cpp new file mode 100644 index 00000000000..b2119d4fb77 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RelayAction.cpp @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RelayAction::RelayAction() : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_mailFrom(MailFrom::NOT_SET), + m_mailFromHasBeenSet(false), + m_relayHasBeenSet(false) +{ +} + +RelayAction::RelayAction(JsonView jsonValue) : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_mailFrom(MailFrom::NOT_SET), + m_mailFromHasBeenSet(false), + m_relayHasBeenSet(false) +{ + *this = jsonValue; +} + +RelayAction& RelayAction::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ActionFailurePolicy")) + { + m_actionFailurePolicy = ActionFailurePolicyMapper::GetActionFailurePolicyForName(jsonValue.GetString("ActionFailurePolicy")); + + m_actionFailurePolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("MailFrom")) + { + m_mailFrom = MailFromMapper::GetMailFromForName(jsonValue.GetString("MailFrom")); + + m_mailFromHasBeenSet = true; + } + + if(jsonValue.ValueExists("Relay")) + { + m_relay = jsonValue.GetString("Relay"); + + m_relayHasBeenSet = true; + } + + return *this; +} + +JsonValue RelayAction::Jsonize() const +{ + JsonValue payload; + + if(m_actionFailurePolicyHasBeenSet) + { + payload.WithString("ActionFailurePolicy", ActionFailurePolicyMapper::GetNameForActionFailurePolicy(m_actionFailurePolicy)); + } + + if(m_mailFromHasBeenSet) + { + payload.WithString("MailFrom", MailFromMapper::GetNameForMailFrom(m_mailFrom)); + } + + if(m_relayHasBeenSet) + { + payload.WithString("Relay", m_relay); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RelayAuthentication.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RelayAuthentication.cpp new file mode 100644 index 00000000000..9f682f7a442 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RelayAuthentication.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RelayAuthentication::RelayAuthentication() : + m_noAuthenticationHasBeenSet(false), + m_secretArnHasBeenSet(false) +{ +} + +RelayAuthentication::RelayAuthentication(JsonView jsonValue) : + m_noAuthenticationHasBeenSet(false), + m_secretArnHasBeenSet(false) +{ + *this = jsonValue; +} + +RelayAuthentication& RelayAuthentication::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("NoAuthentication")) + { + m_noAuthentication = jsonValue.GetObject("NoAuthentication"); + + m_noAuthenticationHasBeenSet = true; + } + + if(jsonValue.ValueExists("SecretArn")) + { + m_secretArn = jsonValue.GetString("SecretArn"); + + m_secretArnHasBeenSet = true; + } + + return *this; +} + +JsonValue RelayAuthentication::Jsonize() const +{ + JsonValue payload; + + if(m_noAuthenticationHasBeenSet) + { + payload.WithObject("NoAuthentication", m_noAuthentication.Jsonize()); + + } + + if(m_secretArnHasBeenSet) + { + payload.WithString("SecretArn", m_secretArn); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/ReplaceRecipientAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/ReplaceRecipientAction.cpp new file mode 100644 index 00000000000..9a972060fea --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/ReplaceRecipientAction.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +ReplaceRecipientAction::ReplaceRecipientAction() : + m_replaceWithHasBeenSet(false) +{ +} + +ReplaceRecipientAction::ReplaceRecipientAction(JsonView jsonValue) : + m_replaceWithHasBeenSet(false) +{ + *this = jsonValue; +} + +ReplaceRecipientAction& ReplaceRecipientAction::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ReplaceWith")) + { + Aws::Utils::Array replaceWithJsonList = jsonValue.GetArray("ReplaceWith"); + for(unsigned replaceWithIndex = 0; replaceWithIndex < replaceWithJsonList.GetLength(); ++replaceWithIndex) + { + m_replaceWith.push_back(replaceWithJsonList[replaceWithIndex].AsString()); + } + m_replaceWithHasBeenSet = true; + } + + return *this; +} + +JsonValue ReplaceRecipientAction::Jsonize() const +{ + JsonValue payload; + + if(m_replaceWithHasBeenSet) + { + Aws::Utils::Array replaceWithJsonList(m_replaceWith.size()); + for(unsigned replaceWithIndex = 0; replaceWithIndex < replaceWithJsonList.GetLength(); ++replaceWithIndex) + { + replaceWithJsonList[replaceWithIndex].AsString(m_replaceWith[replaceWithIndex]); + } + payload.WithArray("ReplaceWith", std::move(replaceWithJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RetentionPeriod.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RetentionPeriod.cpp new file mode 100644 index 00000000000..617a193ad65 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RetentionPeriod.cpp @@ -0,0 +1,170 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RetentionPeriodMapper + { + + static const int THREE_MONTHS_HASH = HashingUtils::HashString("THREE_MONTHS"); + static const int SIX_MONTHS_HASH = HashingUtils::HashString("SIX_MONTHS"); + static const int NINE_MONTHS_HASH = HashingUtils::HashString("NINE_MONTHS"); + static const int ONE_YEAR_HASH = HashingUtils::HashString("ONE_YEAR"); + static const int EIGHTEEN_MONTHS_HASH = HashingUtils::HashString("EIGHTEEN_MONTHS"); + static const int TWO_YEARS_HASH = HashingUtils::HashString("TWO_YEARS"); + static const int THIRTY_MONTHS_HASH = HashingUtils::HashString("THIRTY_MONTHS"); + static const int THREE_YEARS_HASH = HashingUtils::HashString("THREE_YEARS"); + static const int FOUR_YEARS_HASH = HashingUtils::HashString("FOUR_YEARS"); + static const int FIVE_YEARS_HASH = HashingUtils::HashString("FIVE_YEARS"); + static const int SIX_YEARS_HASH = HashingUtils::HashString("SIX_YEARS"); + static const int SEVEN_YEARS_HASH = HashingUtils::HashString("SEVEN_YEARS"); + static const int EIGHT_YEARS_HASH = HashingUtils::HashString("EIGHT_YEARS"); + static const int NINE_YEARS_HASH = HashingUtils::HashString("NINE_YEARS"); + static const int TEN_YEARS_HASH = HashingUtils::HashString("TEN_YEARS"); + static const int PERMANENT_HASH = HashingUtils::HashString("PERMANENT"); + + + RetentionPeriod GetRetentionPeriodForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == THREE_MONTHS_HASH) + { + return RetentionPeriod::THREE_MONTHS; + } + else if (hashCode == SIX_MONTHS_HASH) + { + return RetentionPeriod::SIX_MONTHS; + } + else if (hashCode == NINE_MONTHS_HASH) + { + return RetentionPeriod::NINE_MONTHS; + } + else if (hashCode == ONE_YEAR_HASH) + { + return RetentionPeriod::ONE_YEAR; + } + else if (hashCode == EIGHTEEN_MONTHS_HASH) + { + return RetentionPeriod::EIGHTEEN_MONTHS; + } + else if (hashCode == TWO_YEARS_HASH) + { + return RetentionPeriod::TWO_YEARS; + } + else if (hashCode == THIRTY_MONTHS_HASH) + { + return RetentionPeriod::THIRTY_MONTHS; + } + else if (hashCode == THREE_YEARS_HASH) + { + return RetentionPeriod::THREE_YEARS; + } + else if (hashCode == FOUR_YEARS_HASH) + { + return RetentionPeriod::FOUR_YEARS; + } + else if (hashCode == FIVE_YEARS_HASH) + { + return RetentionPeriod::FIVE_YEARS; + } + else if (hashCode == SIX_YEARS_HASH) + { + return RetentionPeriod::SIX_YEARS; + } + else if (hashCode == SEVEN_YEARS_HASH) + { + return RetentionPeriod::SEVEN_YEARS; + } + else if (hashCode == EIGHT_YEARS_HASH) + { + return RetentionPeriod::EIGHT_YEARS; + } + else if (hashCode == NINE_YEARS_HASH) + { + return RetentionPeriod::NINE_YEARS; + } + else if (hashCode == TEN_YEARS_HASH) + { + return RetentionPeriod::TEN_YEARS; + } + else if (hashCode == PERMANENT_HASH) + { + return RetentionPeriod::PERMANENT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RetentionPeriod::NOT_SET; + } + + Aws::String GetNameForRetentionPeriod(RetentionPeriod enumValue) + { + switch(enumValue) + { + case RetentionPeriod::NOT_SET: + return {}; + case RetentionPeriod::THREE_MONTHS: + return "THREE_MONTHS"; + case RetentionPeriod::SIX_MONTHS: + return "SIX_MONTHS"; + case RetentionPeriod::NINE_MONTHS: + return "NINE_MONTHS"; + case RetentionPeriod::ONE_YEAR: + return "ONE_YEAR"; + case RetentionPeriod::EIGHTEEN_MONTHS: + return "EIGHTEEN_MONTHS"; + case RetentionPeriod::TWO_YEARS: + return "TWO_YEARS"; + case RetentionPeriod::THIRTY_MONTHS: + return "THIRTY_MONTHS"; + case RetentionPeriod::THREE_YEARS: + return "THREE_YEARS"; + case RetentionPeriod::FOUR_YEARS: + return "FOUR_YEARS"; + case RetentionPeriod::FIVE_YEARS: + return "FIVE_YEARS"; + case RetentionPeriod::SIX_YEARS: + return "SIX_YEARS"; + case RetentionPeriod::SEVEN_YEARS: + return "SEVEN_YEARS"; + case RetentionPeriod::EIGHT_YEARS: + return "EIGHT_YEARS"; + case RetentionPeriod::NINE_YEARS: + return "NINE_YEARS"; + case RetentionPeriod::TEN_YEARS: + return "TEN_YEARS"; + case RetentionPeriod::PERMANENT: + return "PERMANENT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RetentionPeriodMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/Row.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/Row.cpp new file mode 100644 index 00000000000..95a79ed0878 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/Row.cpp @@ -0,0 +1,263 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +Row::Row() : + m_archivedMessageIdHasBeenSet(false), + m_ccHasBeenSet(false), + m_dateHasBeenSet(false), + m_fromHasBeenSet(false), + m_hasAttachments(false), + m_hasAttachmentsHasBeenSet(false), + m_inReplyToHasBeenSet(false), + m_messageIdHasBeenSet(false), + m_receivedHeadersHasBeenSet(false), + m_receivedTimestampHasBeenSet(false), + m_subjectHasBeenSet(false), + m_toHasBeenSet(false), + m_xMailerHasBeenSet(false), + m_xOriginalMailerHasBeenSet(false), + m_xPriorityHasBeenSet(false) +{ +} + +Row::Row(JsonView jsonValue) : + m_archivedMessageIdHasBeenSet(false), + m_ccHasBeenSet(false), + m_dateHasBeenSet(false), + m_fromHasBeenSet(false), + m_hasAttachments(false), + m_hasAttachmentsHasBeenSet(false), + m_inReplyToHasBeenSet(false), + m_messageIdHasBeenSet(false), + m_receivedHeadersHasBeenSet(false), + m_receivedTimestampHasBeenSet(false), + m_subjectHasBeenSet(false), + m_toHasBeenSet(false), + m_xMailerHasBeenSet(false), + m_xOriginalMailerHasBeenSet(false), + m_xPriorityHasBeenSet(false) +{ + *this = jsonValue; +} + +Row& Row::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ArchivedMessageId")) + { + m_archivedMessageId = jsonValue.GetString("ArchivedMessageId"); + + m_archivedMessageIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Cc")) + { + m_cc = jsonValue.GetString("Cc"); + + m_ccHasBeenSet = true; + } + + if(jsonValue.ValueExists("Date")) + { + m_date = jsonValue.GetString("Date"); + + m_dateHasBeenSet = true; + } + + if(jsonValue.ValueExists("From")) + { + m_from = jsonValue.GetString("From"); + + m_fromHasBeenSet = true; + } + + if(jsonValue.ValueExists("HasAttachments")) + { + m_hasAttachments = jsonValue.GetBool("HasAttachments"); + + m_hasAttachmentsHasBeenSet = true; + } + + if(jsonValue.ValueExists("InReplyTo")) + { + m_inReplyTo = jsonValue.GetString("InReplyTo"); + + m_inReplyToHasBeenSet = true; + } + + if(jsonValue.ValueExists("MessageId")) + { + m_messageId = jsonValue.GetString("MessageId"); + + m_messageIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReceivedHeaders")) + { + Aws::Utils::Array receivedHeadersJsonList = jsonValue.GetArray("ReceivedHeaders"); + for(unsigned receivedHeadersIndex = 0; receivedHeadersIndex < receivedHeadersJsonList.GetLength(); ++receivedHeadersIndex) + { + m_receivedHeaders.push_back(receivedHeadersJsonList[receivedHeadersIndex].AsString()); + } + m_receivedHeadersHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReceivedTimestamp")) + { + m_receivedTimestamp = jsonValue.GetDouble("ReceivedTimestamp"); + + m_receivedTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("Subject")) + { + m_subject = jsonValue.GetString("Subject"); + + m_subjectHasBeenSet = true; + } + + if(jsonValue.ValueExists("To")) + { + m_to = jsonValue.GetString("To"); + + m_toHasBeenSet = true; + } + + if(jsonValue.ValueExists("XMailer")) + { + m_xMailer = jsonValue.GetString("XMailer"); + + m_xMailerHasBeenSet = true; + } + + if(jsonValue.ValueExists("XOriginalMailer")) + { + m_xOriginalMailer = jsonValue.GetString("XOriginalMailer"); + + m_xOriginalMailerHasBeenSet = true; + } + + if(jsonValue.ValueExists("XPriority")) + { + m_xPriority = jsonValue.GetString("XPriority"); + + m_xPriorityHasBeenSet = true; + } + + return *this; +} + +JsonValue Row::Jsonize() const +{ + JsonValue payload; + + if(m_archivedMessageIdHasBeenSet) + { + payload.WithString("ArchivedMessageId", m_archivedMessageId); + + } + + if(m_ccHasBeenSet) + { + payload.WithString("Cc", m_cc); + + } + + if(m_dateHasBeenSet) + { + payload.WithString("Date", m_date); + + } + + if(m_fromHasBeenSet) + { + payload.WithString("From", m_from); + + } + + if(m_hasAttachmentsHasBeenSet) + { + payload.WithBool("HasAttachments", m_hasAttachments); + + } + + if(m_inReplyToHasBeenSet) + { + payload.WithString("InReplyTo", m_inReplyTo); + + } + + if(m_messageIdHasBeenSet) + { + payload.WithString("MessageId", m_messageId); + + } + + if(m_receivedHeadersHasBeenSet) + { + Aws::Utils::Array receivedHeadersJsonList(m_receivedHeaders.size()); + for(unsigned receivedHeadersIndex = 0; receivedHeadersIndex < receivedHeadersJsonList.GetLength(); ++receivedHeadersIndex) + { + receivedHeadersJsonList[receivedHeadersIndex].AsString(m_receivedHeaders[receivedHeadersIndex]); + } + payload.WithArray("ReceivedHeaders", std::move(receivedHeadersJsonList)); + + } + + if(m_receivedTimestampHasBeenSet) + { + payload.WithDouble("ReceivedTimestamp", m_receivedTimestamp.SecondsWithMSPrecision()); + } + + if(m_subjectHasBeenSet) + { + payload.WithString("Subject", m_subject); + + } + + if(m_toHasBeenSet) + { + payload.WithString("To", m_to); + + } + + if(m_xMailerHasBeenSet) + { + payload.WithString("XMailer", m_xMailer); + + } + + if(m_xOriginalMailerHasBeenSet) + { + payload.WithString("XOriginalMailer", m_xOriginalMailer); + + } + + if(m_xPriorityHasBeenSet) + { + payload.WithString("XPriority", m_xPriority); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/Rule.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/Rule.cpp new file mode 100644 index 00000000000..847e0f87bcd --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/Rule.cpp @@ -0,0 +1,128 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +Rule::Rule() : + m_actionsHasBeenSet(false), + m_conditionsHasBeenSet(false), + m_nameHasBeenSet(false), + m_unlessHasBeenSet(false) +{ +} + +Rule::Rule(JsonView jsonValue) : + m_actionsHasBeenSet(false), + m_conditionsHasBeenSet(false), + m_nameHasBeenSet(false), + m_unlessHasBeenSet(false) +{ + *this = jsonValue; +} + +Rule& Rule::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Actions")) + { + Aws::Utils::Array actionsJsonList = jsonValue.GetArray("Actions"); + for(unsigned actionsIndex = 0; actionsIndex < actionsJsonList.GetLength(); ++actionsIndex) + { + m_actions.push_back(actionsJsonList[actionsIndex].AsObject()); + } + m_actionsHasBeenSet = true; + } + + if(jsonValue.ValueExists("Conditions")) + { + Aws::Utils::Array conditionsJsonList = jsonValue.GetArray("Conditions"); + for(unsigned conditionsIndex = 0; conditionsIndex < conditionsJsonList.GetLength(); ++conditionsIndex) + { + m_conditions.push_back(conditionsJsonList[conditionsIndex].AsObject()); + } + m_conditionsHasBeenSet = true; + } + + if(jsonValue.ValueExists("Name")) + { + m_name = jsonValue.GetString("Name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("Unless")) + { + Aws::Utils::Array unlessJsonList = jsonValue.GetArray("Unless"); + for(unsigned unlessIndex = 0; unlessIndex < unlessJsonList.GetLength(); ++unlessIndex) + { + m_unless.push_back(unlessJsonList[unlessIndex].AsObject()); + } + m_unlessHasBeenSet = true; + } + + return *this; +} + +JsonValue Rule::Jsonize() const +{ + JsonValue payload; + + if(m_actionsHasBeenSet) + { + Aws::Utils::Array actionsJsonList(m_actions.size()); + for(unsigned actionsIndex = 0; actionsIndex < actionsJsonList.GetLength(); ++actionsIndex) + { + actionsJsonList[actionsIndex].AsObject(m_actions[actionsIndex].Jsonize()); + } + payload.WithArray("Actions", std::move(actionsJsonList)); + + } + + if(m_conditionsHasBeenSet) + { + Aws::Utils::Array conditionsJsonList(m_conditions.size()); + for(unsigned conditionsIndex = 0; conditionsIndex < conditionsJsonList.GetLength(); ++conditionsIndex) + { + conditionsJsonList[conditionsIndex].AsObject(m_conditions[conditionsIndex].Jsonize()); + } + payload.WithArray("Conditions", std::move(conditionsJsonList)); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("Name", m_name); + + } + + if(m_unlessHasBeenSet) + { + Aws::Utils::Array unlessJsonList(m_unless.size()); + for(unsigned unlessIndex = 0; unlessIndex < unlessJsonList.GetLength(); ++unlessIndex) + { + unlessJsonList[unlessIndex].AsObject(m_unless[unlessIndex].Jsonize()); + } + payload.WithArray("Unless", std::move(unlessJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleAction.cpp new file mode 100644 index 00000000000..c8520ba536c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleAction.cpp @@ -0,0 +1,164 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleAction::RuleAction() : + m_addHeaderHasBeenSet(false), + m_archiveHasBeenSet(false), + m_deliverToMailboxHasBeenSet(false), + m_dropHasBeenSet(false), + m_relayHasBeenSet(false), + m_replaceRecipientHasBeenSet(false), + m_sendHasBeenSet(false), + m_writeToS3HasBeenSet(false) +{ +} + +RuleAction::RuleAction(JsonView jsonValue) : + m_addHeaderHasBeenSet(false), + m_archiveHasBeenSet(false), + m_deliverToMailboxHasBeenSet(false), + m_dropHasBeenSet(false), + m_relayHasBeenSet(false), + m_replaceRecipientHasBeenSet(false), + m_sendHasBeenSet(false), + m_writeToS3HasBeenSet(false) +{ + *this = jsonValue; +} + +RuleAction& RuleAction::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("AddHeader")) + { + m_addHeader = jsonValue.GetObject("AddHeader"); + + m_addHeaderHasBeenSet = true; + } + + if(jsonValue.ValueExists("Archive")) + { + m_archive = jsonValue.GetObject("Archive"); + + m_archiveHasBeenSet = true; + } + + if(jsonValue.ValueExists("DeliverToMailbox")) + { + m_deliverToMailbox = jsonValue.GetObject("DeliverToMailbox"); + + m_deliverToMailboxHasBeenSet = true; + } + + if(jsonValue.ValueExists("Drop")) + { + m_drop = jsonValue.GetObject("Drop"); + + m_dropHasBeenSet = true; + } + + if(jsonValue.ValueExists("Relay")) + { + m_relay = jsonValue.GetObject("Relay"); + + m_relayHasBeenSet = true; + } + + if(jsonValue.ValueExists("ReplaceRecipient")) + { + m_replaceRecipient = jsonValue.GetObject("ReplaceRecipient"); + + m_replaceRecipientHasBeenSet = true; + } + + if(jsonValue.ValueExists("Send")) + { + m_send = jsonValue.GetObject("Send"); + + m_sendHasBeenSet = true; + } + + if(jsonValue.ValueExists("WriteToS3")) + { + m_writeToS3 = jsonValue.GetObject("WriteToS3"); + + m_writeToS3HasBeenSet = true; + } + + return *this; +} + +JsonValue RuleAction::Jsonize() const +{ + JsonValue payload; + + if(m_addHeaderHasBeenSet) + { + payload.WithObject("AddHeader", m_addHeader.Jsonize()); + + } + + if(m_archiveHasBeenSet) + { + payload.WithObject("Archive", m_archive.Jsonize()); + + } + + if(m_deliverToMailboxHasBeenSet) + { + payload.WithObject("DeliverToMailbox", m_deliverToMailbox.Jsonize()); + + } + + if(m_dropHasBeenSet) + { + payload.WithObject("Drop", m_drop.Jsonize()); + + } + + if(m_relayHasBeenSet) + { + payload.WithObject("Relay", m_relay.Jsonize()); + + } + + if(m_replaceRecipientHasBeenSet) + { + payload.WithObject("ReplaceRecipient", m_replaceRecipient.Jsonize()); + + } + + if(m_sendHasBeenSet) + { + payload.WithObject("Send", m_send.Jsonize()); + + } + + if(m_writeToS3HasBeenSet) + { + payload.WithObject("WriteToS3", m_writeToS3.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanEmailAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanEmailAttribute.cpp new file mode 100644 index 00000000000..292c852e402 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanEmailAttribute.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleBooleanEmailAttributeMapper + { + + static const int READ_RECEIPT_REQUESTED_HASH = HashingUtils::HashString("READ_RECEIPT_REQUESTED"); + static const int TLS_HASH = HashingUtils::HashString("TLS"); + static const int TLS_WRAPPED_HASH = HashingUtils::HashString("TLS_WRAPPED"); + + + RuleBooleanEmailAttribute GetRuleBooleanEmailAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == READ_RECEIPT_REQUESTED_HASH) + { + return RuleBooleanEmailAttribute::READ_RECEIPT_REQUESTED; + } + else if (hashCode == TLS_HASH) + { + return RuleBooleanEmailAttribute::TLS; + } + else if (hashCode == TLS_WRAPPED_HASH) + { + return RuleBooleanEmailAttribute::TLS_WRAPPED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleBooleanEmailAttribute::NOT_SET; + } + + Aws::String GetNameForRuleBooleanEmailAttribute(RuleBooleanEmailAttribute enumValue) + { + switch(enumValue) + { + case RuleBooleanEmailAttribute::NOT_SET: + return {}; + case RuleBooleanEmailAttribute::READ_RECEIPT_REQUESTED: + return "READ_RECEIPT_REQUESTED"; + case RuleBooleanEmailAttribute::TLS: + return "TLS"; + case RuleBooleanEmailAttribute::TLS_WRAPPED: + return "TLS_WRAPPED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleBooleanEmailAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanExpression.cpp new file mode 100644 index 00000000000..8e0662324f8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanExpression.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleBooleanExpression::RuleBooleanExpression() : + m_evaluateHasBeenSet(false), + m_operator(RuleBooleanOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ +} + +RuleBooleanExpression::RuleBooleanExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(RuleBooleanOperator::NOT_SET), + m_operatorHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleBooleanExpression& RuleBooleanExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = RuleBooleanOperatorMapper::GetRuleBooleanOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleBooleanExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", RuleBooleanOperatorMapper::GetNameForRuleBooleanOperator(m_operator)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanOperator.cpp new file mode 100644 index 00000000000..ad29f72aa26 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanOperator.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleBooleanOperatorMapper + { + + static const int IS_TRUE_HASH = HashingUtils::HashString("IS_TRUE"); + static const int IS_FALSE_HASH = HashingUtils::HashString("IS_FALSE"); + + + RuleBooleanOperator GetRuleBooleanOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == IS_TRUE_HASH) + { + return RuleBooleanOperator::IS_TRUE; + } + else if (hashCode == IS_FALSE_HASH) + { + return RuleBooleanOperator::IS_FALSE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleBooleanOperator::NOT_SET; + } + + Aws::String GetNameForRuleBooleanOperator(RuleBooleanOperator enumValue) + { + switch(enumValue) + { + case RuleBooleanOperator::NOT_SET: + return {}; + case RuleBooleanOperator::IS_TRUE: + return "IS_TRUE"; + case RuleBooleanOperator::IS_FALSE: + return "IS_FALSE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleBooleanOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanToEvaluate.cpp new file mode 100644 index 00000000000..a9cd4541849 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleBooleanToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleBooleanToEvaluate::RuleBooleanToEvaluate() : + m_attribute(RuleBooleanEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +RuleBooleanToEvaluate::RuleBooleanToEvaluate(JsonView jsonValue) : + m_attribute(RuleBooleanEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleBooleanToEvaluate& RuleBooleanToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = RuleBooleanEmailAttributeMapper::GetRuleBooleanEmailAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleBooleanToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", RuleBooleanEmailAttributeMapper::GetNameForRuleBooleanEmailAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleCondition.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleCondition.cpp new file mode 100644 index 00000000000..b79973871e9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleCondition.cpp @@ -0,0 +1,134 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleCondition::RuleCondition() : + m_booleanExpressionHasBeenSet(false), + m_dmarcExpressionHasBeenSet(false), + m_ipExpressionHasBeenSet(false), + m_numberExpressionHasBeenSet(false), + m_stringExpressionHasBeenSet(false), + m_verdictExpressionHasBeenSet(false) +{ +} + +RuleCondition::RuleCondition(JsonView jsonValue) : + m_booleanExpressionHasBeenSet(false), + m_dmarcExpressionHasBeenSet(false), + m_ipExpressionHasBeenSet(false), + m_numberExpressionHasBeenSet(false), + m_stringExpressionHasBeenSet(false), + m_verdictExpressionHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleCondition& RuleCondition::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("BooleanExpression")) + { + m_booleanExpression = jsonValue.GetObject("BooleanExpression"); + + m_booleanExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("DmarcExpression")) + { + m_dmarcExpression = jsonValue.GetObject("DmarcExpression"); + + m_dmarcExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("IpExpression")) + { + m_ipExpression = jsonValue.GetObject("IpExpression"); + + m_ipExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("NumberExpression")) + { + m_numberExpression = jsonValue.GetObject("NumberExpression"); + + m_numberExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("StringExpression")) + { + m_stringExpression = jsonValue.GetObject("StringExpression"); + + m_stringExpressionHasBeenSet = true; + } + + if(jsonValue.ValueExists("VerdictExpression")) + { + m_verdictExpression = jsonValue.GetObject("VerdictExpression"); + + m_verdictExpressionHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleCondition::Jsonize() const +{ + JsonValue payload; + + if(m_booleanExpressionHasBeenSet) + { + payload.WithObject("BooleanExpression", m_booleanExpression.Jsonize()); + + } + + if(m_dmarcExpressionHasBeenSet) + { + payload.WithObject("DmarcExpression", m_dmarcExpression.Jsonize()); + + } + + if(m_ipExpressionHasBeenSet) + { + payload.WithObject("IpExpression", m_ipExpression.Jsonize()); + + } + + if(m_numberExpressionHasBeenSet) + { + payload.WithObject("NumberExpression", m_numberExpression.Jsonize()); + + } + + if(m_stringExpressionHasBeenSet) + { + payload.WithObject("StringExpression", m_stringExpression.Jsonize()); + + } + + if(m_verdictExpressionHasBeenSet) + { + payload.WithObject("VerdictExpression", m_verdictExpression.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcExpression.cpp new file mode 100644 index 00000000000..98b4d538379 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcExpression.cpp @@ -0,0 +1,83 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleDmarcExpression::RuleDmarcExpression() : + m_operator(RuleDmarcOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +RuleDmarcExpression::RuleDmarcExpression(JsonView jsonValue) : + m_operator(RuleDmarcOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleDmarcExpression& RuleDmarcExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Operator")) + { + m_operator = RuleDmarcOperatorMapper::GetRuleDmarcOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(RuleDmarcPolicyMapper::GetRuleDmarcPolicyForName(valuesJsonList[valuesIndex].AsString())); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleDmarcExpression::Jsonize() const +{ + JsonValue payload; + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", RuleDmarcOperatorMapper::GetNameForRuleDmarcOperator(m_operator)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(RuleDmarcPolicyMapper::GetNameForRuleDmarcPolicy(m_values[valuesIndex])); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcOperator.cpp new file mode 100644 index 00000000000..2a87c65b4c8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcOperator.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleDmarcOperatorMapper + { + + static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); + + + RuleDmarcOperator GetRuleDmarcOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EQUALS_HASH) + { + return RuleDmarcOperator::EQUALS; + } + else if (hashCode == NOT_EQUALS_HASH) + { + return RuleDmarcOperator::NOT_EQUALS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleDmarcOperator::NOT_SET; + } + + Aws::String GetNameForRuleDmarcOperator(RuleDmarcOperator enumValue) + { + switch(enumValue) + { + case RuleDmarcOperator::NOT_SET: + return {}; + case RuleDmarcOperator::EQUALS: + return "EQUALS"; + case RuleDmarcOperator::NOT_EQUALS: + return "NOT_EQUALS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleDmarcOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcPolicy.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcPolicy.cpp new file mode 100644 index 00000000000..c520dd2582b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleDmarcPolicy.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleDmarcPolicyMapper + { + + static const int NONE_HASH = HashingUtils::HashString("NONE"); + static const int QUARANTINE_HASH = HashingUtils::HashString("QUARANTINE"); + static const int REJECT_HASH = HashingUtils::HashString("REJECT"); + + + RuleDmarcPolicy GetRuleDmarcPolicyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == NONE_HASH) + { + return RuleDmarcPolicy::NONE; + } + else if (hashCode == QUARANTINE_HASH) + { + return RuleDmarcPolicy::QUARANTINE; + } + else if (hashCode == REJECT_HASH) + { + return RuleDmarcPolicy::REJECT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleDmarcPolicy::NOT_SET; + } + + Aws::String GetNameForRuleDmarcPolicy(RuleDmarcPolicy enumValue) + { + switch(enumValue) + { + case RuleDmarcPolicy::NOT_SET: + return {}; + case RuleDmarcPolicy::NONE: + return "NONE"; + case RuleDmarcPolicy::QUARANTINE: + return "QUARANTINE"; + case RuleDmarcPolicy::REJECT: + return "REJECT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleDmarcPolicyMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpEmailAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpEmailAttribute.cpp new file mode 100644 index 00000000000..cb711092868 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpEmailAttribute.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleIpEmailAttributeMapper + { + + static const int SOURCE_IP_HASH = HashingUtils::HashString("SOURCE_IP"); + + + RuleIpEmailAttribute GetRuleIpEmailAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SOURCE_IP_HASH) + { + return RuleIpEmailAttribute::SOURCE_IP; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleIpEmailAttribute::NOT_SET; + } + + Aws::String GetNameForRuleIpEmailAttribute(RuleIpEmailAttribute enumValue) + { + switch(enumValue) + { + case RuleIpEmailAttribute::NOT_SET: + return {}; + case RuleIpEmailAttribute::SOURCE_IP: + return "SOURCE_IP"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleIpEmailAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpExpression.cpp new file mode 100644 index 00000000000..c681cdee9d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpExpression.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleIpExpression::RuleIpExpression() : + m_evaluateHasBeenSet(false), + m_operator(RuleIpOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +RuleIpExpression::RuleIpExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(RuleIpOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleIpExpression& RuleIpExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = RuleIpOperatorMapper::GetRuleIpOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(valuesJsonList[valuesIndex].AsString()); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleIpExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", RuleIpOperatorMapper::GetNameForRuleIpOperator(m_operator)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(m_values[valuesIndex]); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpOperator.cpp new file mode 100644 index 00000000000..69edf8a9618 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpOperator.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleIpOperatorMapper + { + + static const int CIDR_MATCHES_HASH = HashingUtils::HashString("CIDR_MATCHES"); + static const int NOT_CIDR_MATCHES_HASH = HashingUtils::HashString("NOT_CIDR_MATCHES"); + + + RuleIpOperator GetRuleIpOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CIDR_MATCHES_HASH) + { + return RuleIpOperator::CIDR_MATCHES; + } + else if (hashCode == NOT_CIDR_MATCHES_HASH) + { + return RuleIpOperator::NOT_CIDR_MATCHES; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleIpOperator::NOT_SET; + } + + Aws::String GetNameForRuleIpOperator(RuleIpOperator enumValue) + { + switch(enumValue) + { + case RuleIpOperator::NOT_SET: + return {}; + case RuleIpOperator::CIDR_MATCHES: + return "CIDR_MATCHES"; + case RuleIpOperator::NOT_CIDR_MATCHES: + return "NOT_CIDR_MATCHES"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleIpOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpToEvaluate.cpp new file mode 100644 index 00000000000..e06a24f261b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleIpToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleIpToEvaluate::RuleIpToEvaluate() : + m_attribute(RuleIpEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +RuleIpToEvaluate::RuleIpToEvaluate(JsonView jsonValue) : + m_attribute(RuleIpEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleIpToEvaluate& RuleIpToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = RuleIpEmailAttributeMapper::GetRuleIpEmailAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleIpToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", RuleIpEmailAttributeMapper::GetNameForRuleIpEmailAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberEmailAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberEmailAttribute.cpp new file mode 100644 index 00000000000..6c4d2bade67 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberEmailAttribute.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleNumberEmailAttributeMapper + { + + static const int MESSAGE_SIZE_HASH = HashingUtils::HashString("MESSAGE_SIZE"); + + + RuleNumberEmailAttribute GetRuleNumberEmailAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == MESSAGE_SIZE_HASH) + { + return RuleNumberEmailAttribute::MESSAGE_SIZE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleNumberEmailAttribute::NOT_SET; + } + + Aws::String GetNameForRuleNumberEmailAttribute(RuleNumberEmailAttribute enumValue) + { + switch(enumValue) + { + case RuleNumberEmailAttribute::NOT_SET: + return {}; + case RuleNumberEmailAttribute::MESSAGE_SIZE: + return "MESSAGE_SIZE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleNumberEmailAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberExpression.cpp new file mode 100644 index 00000000000..cf6d8875e8b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberExpression.cpp @@ -0,0 +1,92 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleNumberExpression::RuleNumberExpression() : + m_evaluateHasBeenSet(false), + m_operator(RuleNumberOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_value(0.0), + m_valueHasBeenSet(false) +{ +} + +RuleNumberExpression::RuleNumberExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(RuleNumberOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_value(0.0), + m_valueHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleNumberExpression& RuleNumberExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = RuleNumberOperatorMapper::GetRuleNumberOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Value")) + { + m_value = jsonValue.GetDouble("Value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleNumberExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", RuleNumberOperatorMapper::GetNameForRuleNumberOperator(m_operator)); + } + + if(m_valueHasBeenSet) + { + payload.WithDouble("Value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberOperator.cpp new file mode 100644 index 00000000000..33bd04a090b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberOperator.cpp @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleNumberOperatorMapper + { + + static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); + static const int LESS_THAN_HASH = HashingUtils::HashString("LESS_THAN"); + static const int GREATER_THAN_HASH = HashingUtils::HashString("GREATER_THAN"); + static const int LESS_THAN_OR_EQUAL_HASH = HashingUtils::HashString("LESS_THAN_OR_EQUAL"); + static const int GREATER_THAN_OR_EQUAL_HASH = HashingUtils::HashString("GREATER_THAN_OR_EQUAL"); + + + RuleNumberOperator GetRuleNumberOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EQUALS_HASH) + { + return RuleNumberOperator::EQUALS; + } + else if (hashCode == NOT_EQUALS_HASH) + { + return RuleNumberOperator::NOT_EQUALS; + } + else if (hashCode == LESS_THAN_HASH) + { + return RuleNumberOperator::LESS_THAN; + } + else if (hashCode == GREATER_THAN_HASH) + { + return RuleNumberOperator::GREATER_THAN; + } + else if (hashCode == LESS_THAN_OR_EQUAL_HASH) + { + return RuleNumberOperator::LESS_THAN_OR_EQUAL; + } + else if (hashCode == GREATER_THAN_OR_EQUAL_HASH) + { + return RuleNumberOperator::GREATER_THAN_OR_EQUAL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleNumberOperator::NOT_SET; + } + + Aws::String GetNameForRuleNumberOperator(RuleNumberOperator enumValue) + { + switch(enumValue) + { + case RuleNumberOperator::NOT_SET: + return {}; + case RuleNumberOperator::EQUALS: + return "EQUALS"; + case RuleNumberOperator::NOT_EQUALS: + return "NOT_EQUALS"; + case RuleNumberOperator::LESS_THAN: + return "LESS_THAN"; + case RuleNumberOperator::GREATER_THAN: + return "GREATER_THAN"; + case RuleNumberOperator::LESS_THAN_OR_EQUAL: + return "LESS_THAN_OR_EQUAL"; + case RuleNumberOperator::GREATER_THAN_OR_EQUAL: + return "GREATER_THAN_OR_EQUAL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleNumberOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberToEvaluate.cpp new file mode 100644 index 00000000000..2359ea0ff8a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleNumberToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleNumberToEvaluate::RuleNumberToEvaluate() : + m_attribute(RuleNumberEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +RuleNumberToEvaluate::RuleNumberToEvaluate(JsonView jsonValue) : + m_attribute(RuleNumberEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleNumberToEvaluate& RuleNumberToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = RuleNumberEmailAttributeMapper::GetRuleNumberEmailAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleNumberToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", RuleNumberEmailAttributeMapper::GetNameForRuleNumberEmailAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleSet.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleSet.cpp new file mode 100644 index 00000000000..cbb0d7ac5c9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleSet.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleSet::RuleSet() : + m_lastModificationDateHasBeenSet(false), + m_ruleSetIdHasBeenSet(false), + m_ruleSetNameHasBeenSet(false) +{ +} + +RuleSet::RuleSet(JsonView jsonValue) : + m_lastModificationDateHasBeenSet(false), + m_ruleSetIdHasBeenSet(false), + m_ruleSetNameHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleSet& RuleSet::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("LastModificationDate")) + { + m_lastModificationDate = jsonValue.GetDouble("LastModificationDate"); + + m_lastModificationDateHasBeenSet = true; + } + + if(jsonValue.ValueExists("RuleSetId")) + { + m_ruleSetId = jsonValue.GetString("RuleSetId"); + + m_ruleSetIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("RuleSetName")) + { + m_ruleSetName = jsonValue.GetString("RuleSetName"); + + m_ruleSetNameHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleSet::Jsonize() const +{ + JsonValue payload; + + if(m_lastModificationDateHasBeenSet) + { + payload.WithDouble("LastModificationDate", m_lastModificationDate.SecondsWithMSPrecision()); + } + + if(m_ruleSetIdHasBeenSet) + { + payload.WithString("RuleSetId", m_ruleSetId); + + } + + if(m_ruleSetNameHasBeenSet) + { + payload.WithString("RuleSetName", m_ruleSetName); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringEmailAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringEmailAttribute.cpp new file mode 100644 index 00000000000..ad4354c112b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringEmailAttribute.cpp @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleStringEmailAttributeMapper + { + + static const int MAIL_FROM_HASH = HashingUtils::HashString("MAIL_FROM"); + static const int HELO_HASH = HashingUtils::HashString("HELO"); + static const int RECIPIENT_HASH = HashingUtils::HashString("RECIPIENT"); + static const int SENDER_HASH = HashingUtils::HashString("SENDER"); + static const int FROM_HASH = HashingUtils::HashString("FROM"); + static const int SUBJECT_HASH = HashingUtils::HashString("SUBJECT"); + static const int TO_HASH = HashingUtils::HashString("TO"); + static const int CC_HASH = HashingUtils::HashString("CC"); + + + RuleStringEmailAttribute GetRuleStringEmailAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == MAIL_FROM_HASH) + { + return RuleStringEmailAttribute::MAIL_FROM; + } + else if (hashCode == HELO_HASH) + { + return RuleStringEmailAttribute::HELO; + } + else if (hashCode == RECIPIENT_HASH) + { + return RuleStringEmailAttribute::RECIPIENT; + } + else if (hashCode == SENDER_HASH) + { + return RuleStringEmailAttribute::SENDER; + } + else if (hashCode == FROM_HASH) + { + return RuleStringEmailAttribute::FROM; + } + else if (hashCode == SUBJECT_HASH) + { + return RuleStringEmailAttribute::SUBJECT; + } + else if (hashCode == TO_HASH) + { + return RuleStringEmailAttribute::TO; + } + else if (hashCode == CC_HASH) + { + return RuleStringEmailAttribute::CC; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleStringEmailAttribute::NOT_SET; + } + + Aws::String GetNameForRuleStringEmailAttribute(RuleStringEmailAttribute enumValue) + { + switch(enumValue) + { + case RuleStringEmailAttribute::NOT_SET: + return {}; + case RuleStringEmailAttribute::MAIL_FROM: + return "MAIL_FROM"; + case RuleStringEmailAttribute::HELO: + return "HELO"; + case RuleStringEmailAttribute::RECIPIENT: + return "RECIPIENT"; + case RuleStringEmailAttribute::SENDER: + return "SENDER"; + case RuleStringEmailAttribute::FROM: + return "FROM"; + case RuleStringEmailAttribute::SUBJECT: + return "SUBJECT"; + case RuleStringEmailAttribute::TO: + return "TO"; + case RuleStringEmailAttribute::CC: + return "CC"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleStringEmailAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringExpression.cpp new file mode 100644 index 00000000000..8c219ce51c1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringExpression.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleStringExpression::RuleStringExpression() : + m_evaluateHasBeenSet(false), + m_operator(RuleStringOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +RuleStringExpression::RuleStringExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(RuleStringOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleStringExpression& RuleStringExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = RuleStringOperatorMapper::GetRuleStringOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(valuesJsonList[valuesIndex].AsString()); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleStringExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", RuleStringOperatorMapper::GetNameForRuleStringOperator(m_operator)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(m_values[valuesIndex]); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringOperator.cpp new file mode 100644 index 00000000000..c37bb55600f --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringOperator.cpp @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleStringOperatorMapper + { + + static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); + static const int STARTS_WITH_HASH = HashingUtils::HashString("STARTS_WITH"); + static const int ENDS_WITH_HASH = HashingUtils::HashString("ENDS_WITH"); + static const int CONTAINS_HASH = HashingUtils::HashString("CONTAINS"); + + + RuleStringOperator GetRuleStringOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EQUALS_HASH) + { + return RuleStringOperator::EQUALS; + } + else if (hashCode == NOT_EQUALS_HASH) + { + return RuleStringOperator::NOT_EQUALS; + } + else if (hashCode == STARTS_WITH_HASH) + { + return RuleStringOperator::STARTS_WITH; + } + else if (hashCode == ENDS_WITH_HASH) + { + return RuleStringOperator::ENDS_WITH; + } + else if (hashCode == CONTAINS_HASH) + { + return RuleStringOperator::CONTAINS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleStringOperator::NOT_SET; + } + + Aws::String GetNameForRuleStringOperator(RuleStringOperator enumValue) + { + switch(enumValue) + { + case RuleStringOperator::NOT_SET: + return {}; + case RuleStringOperator::EQUALS: + return "EQUALS"; + case RuleStringOperator::NOT_EQUALS: + return "NOT_EQUALS"; + case RuleStringOperator::STARTS_WITH: + return "STARTS_WITH"; + case RuleStringOperator::ENDS_WITH: + return "ENDS_WITH"; + case RuleStringOperator::CONTAINS: + return "CONTAINS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleStringOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringToEvaluate.cpp new file mode 100644 index 00000000000..1e63201d072 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleStringToEvaluate.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleStringToEvaluate::RuleStringToEvaluate() : + m_attribute(RuleStringEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +RuleStringToEvaluate::RuleStringToEvaluate(JsonView jsonValue) : + m_attribute(RuleStringEmailAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleStringToEvaluate& RuleStringToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = RuleStringEmailAttributeMapper::GetRuleStringEmailAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleStringToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", RuleStringEmailAttributeMapper::GetNameForRuleStringEmailAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdict.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdict.cpp new file mode 100644 index 00000000000..55b35327255 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdict.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleVerdictMapper + { + + static const int PASS_HASH = HashingUtils::HashString("PASS"); + static const int FAIL_HASH = HashingUtils::HashString("FAIL"); + static const int GRAY_HASH = HashingUtils::HashString("GRAY"); + static const int PROCESSING_FAILED_HASH = HashingUtils::HashString("PROCESSING_FAILED"); + + + RuleVerdict GetRuleVerdictForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == PASS_HASH) + { + return RuleVerdict::PASS; + } + else if (hashCode == FAIL_HASH) + { + return RuleVerdict::FAIL; + } + else if (hashCode == GRAY_HASH) + { + return RuleVerdict::GRAY; + } + else if (hashCode == PROCESSING_FAILED_HASH) + { + return RuleVerdict::PROCESSING_FAILED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleVerdict::NOT_SET; + } + + Aws::String GetNameForRuleVerdict(RuleVerdict enumValue) + { + switch(enumValue) + { + case RuleVerdict::NOT_SET: + return {}; + case RuleVerdict::PASS: + return "PASS"; + case RuleVerdict::FAIL: + return "FAIL"; + case RuleVerdict::GRAY: + return "GRAY"; + case RuleVerdict::PROCESSING_FAILED: + return "PROCESSING_FAILED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleVerdictMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictAttribute.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictAttribute.cpp new file mode 100644 index 00000000000..97a6c7ab44b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictAttribute.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleVerdictAttributeMapper + { + + static const int SPF_HASH = HashingUtils::HashString("SPF"); + static const int DKIM_HASH = HashingUtils::HashString("DKIM"); + + + RuleVerdictAttribute GetRuleVerdictAttributeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SPF_HASH) + { + return RuleVerdictAttribute::SPF; + } + else if (hashCode == DKIM_HASH) + { + return RuleVerdictAttribute::DKIM; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleVerdictAttribute::NOT_SET; + } + + Aws::String GetNameForRuleVerdictAttribute(RuleVerdictAttribute enumValue) + { + switch(enumValue) + { + case RuleVerdictAttribute::NOT_SET: + return {}; + case RuleVerdictAttribute::SPF: + return "SPF"; + case RuleVerdictAttribute::DKIM: + return "DKIM"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleVerdictAttributeMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictExpression.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictExpression.cpp new file mode 100644 index 00000000000..c7d56d33e0d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictExpression.cpp @@ -0,0 +1,98 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleVerdictExpression::RuleVerdictExpression() : + m_evaluateHasBeenSet(false), + m_operator(RuleVerdictOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ +} + +RuleVerdictExpression::RuleVerdictExpression(JsonView jsonValue) : + m_evaluateHasBeenSet(false), + m_operator(RuleVerdictOperator::NOT_SET), + m_operatorHasBeenSet(false), + m_valuesHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleVerdictExpression& RuleVerdictExpression::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Evaluate")) + { + m_evaluate = jsonValue.GetObject("Evaluate"); + + m_evaluateHasBeenSet = true; + } + + if(jsonValue.ValueExists("Operator")) + { + m_operator = RuleVerdictOperatorMapper::GetRuleVerdictOperatorForName(jsonValue.GetString("Operator")); + + m_operatorHasBeenSet = true; + } + + if(jsonValue.ValueExists("Values")) + { + Aws::Utils::Array valuesJsonList = jsonValue.GetArray("Values"); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + m_values.push_back(RuleVerdictMapper::GetRuleVerdictForName(valuesJsonList[valuesIndex].AsString())); + } + m_valuesHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleVerdictExpression::Jsonize() const +{ + JsonValue payload; + + if(m_evaluateHasBeenSet) + { + payload.WithObject("Evaluate", m_evaluate.Jsonize()); + + } + + if(m_operatorHasBeenSet) + { + payload.WithString("Operator", RuleVerdictOperatorMapper::GetNameForRuleVerdictOperator(m_operator)); + } + + if(m_valuesHasBeenSet) + { + Aws::Utils::Array valuesJsonList(m_values.size()); + for(unsigned valuesIndex = 0; valuesIndex < valuesJsonList.GetLength(); ++valuesIndex) + { + valuesJsonList[valuesIndex].AsString(RuleVerdictMapper::GetNameForRuleVerdict(m_values[valuesIndex])); + } + payload.WithArray("Values", std::move(valuesJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictOperator.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictOperator.cpp new file mode 100644 index 00000000000..a80c78f105e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictOperator.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace RuleVerdictOperatorMapper + { + + static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); + static const int NOT_EQUALS_HASH = HashingUtils::HashString("NOT_EQUALS"); + + + RuleVerdictOperator GetRuleVerdictOperatorForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == EQUALS_HASH) + { + return RuleVerdictOperator::EQUALS; + } + else if (hashCode == NOT_EQUALS_HASH) + { + return RuleVerdictOperator::NOT_EQUALS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return RuleVerdictOperator::NOT_SET; + } + + Aws::String GetNameForRuleVerdictOperator(RuleVerdictOperator enumValue) + { + switch(enumValue) + { + case RuleVerdictOperator::NOT_SET: + return {}; + case RuleVerdictOperator::EQUALS: + return "EQUALS"; + case RuleVerdictOperator::NOT_EQUALS: + return "NOT_EQUALS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace RuleVerdictOperatorMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictToEvaluate.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictToEvaluate.cpp new file mode 100644 index 00000000000..a141bff1fed --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/RuleVerdictToEvaluate.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +RuleVerdictToEvaluate::RuleVerdictToEvaluate() : + m_analysisHasBeenSet(false), + m_attribute(RuleVerdictAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ +} + +RuleVerdictToEvaluate::RuleVerdictToEvaluate(JsonView jsonValue) : + m_analysisHasBeenSet(false), + m_attribute(RuleVerdictAttribute::NOT_SET), + m_attributeHasBeenSet(false) +{ + *this = jsonValue; +} + +RuleVerdictToEvaluate& RuleVerdictToEvaluate::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Analysis")) + { + m_analysis = jsonValue.GetObject("Analysis"); + + m_analysisHasBeenSet = true; + } + + if(jsonValue.ValueExists("Attribute")) + { + m_attribute = RuleVerdictAttributeMapper::GetRuleVerdictAttributeForName(jsonValue.GetString("Attribute")); + + m_attributeHasBeenSet = true; + } + + return *this; +} + +JsonValue RuleVerdictToEvaluate::Jsonize() const +{ + JsonValue payload; + + if(m_analysisHasBeenSet) + { + payload.WithObject("Analysis", m_analysis.Jsonize()); + + } + + if(m_attributeHasBeenSet) + { + payload.WithString("Attribute", RuleVerdictAttributeMapper::GetNameForRuleVerdictAttribute(m_attribute)); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/S3Action.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/S3Action.cpp new file mode 100644 index 00000000000..ebad4597259 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/S3Action.cpp @@ -0,0 +1,120 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +S3Action::S3Action() : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_roleArnHasBeenSet(false), + m_s3BucketHasBeenSet(false), + m_s3PrefixHasBeenSet(false), + m_s3SseKmsKeyIdHasBeenSet(false) +{ +} + +S3Action::S3Action(JsonView jsonValue) : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_roleArnHasBeenSet(false), + m_s3BucketHasBeenSet(false), + m_s3PrefixHasBeenSet(false), + m_s3SseKmsKeyIdHasBeenSet(false) +{ + *this = jsonValue; +} + +S3Action& S3Action::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ActionFailurePolicy")) + { + m_actionFailurePolicy = ActionFailurePolicyMapper::GetActionFailurePolicyForName(jsonValue.GetString("ActionFailurePolicy")); + + m_actionFailurePolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("RoleArn")) + { + m_roleArn = jsonValue.GetString("RoleArn"); + + m_roleArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("S3Bucket")) + { + m_s3Bucket = jsonValue.GetString("S3Bucket"); + + m_s3BucketHasBeenSet = true; + } + + if(jsonValue.ValueExists("S3Prefix")) + { + m_s3Prefix = jsonValue.GetString("S3Prefix"); + + m_s3PrefixHasBeenSet = true; + } + + if(jsonValue.ValueExists("S3SseKmsKeyId")) + { + m_s3SseKmsKeyId = jsonValue.GetString("S3SseKmsKeyId"); + + m_s3SseKmsKeyIdHasBeenSet = true; + } + + return *this; +} + +JsonValue S3Action::Jsonize() const +{ + JsonValue payload; + + if(m_actionFailurePolicyHasBeenSet) + { + payload.WithString("ActionFailurePolicy", ActionFailurePolicyMapper::GetNameForActionFailurePolicy(m_actionFailurePolicy)); + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("RoleArn", m_roleArn); + + } + + if(m_s3BucketHasBeenSet) + { + payload.WithString("S3Bucket", m_s3Bucket); + + } + + if(m_s3PrefixHasBeenSet) + { + payload.WithString("S3Prefix", m_s3Prefix); + + } + + if(m_s3SseKmsKeyIdHasBeenSet) + { + payload.WithString("S3SseKmsKeyId", m_s3SseKmsKeyId); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/S3ExportDestinationConfiguration.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/S3ExportDestinationConfiguration.cpp new file mode 100644 index 00000000000..9e8ec48c475 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/S3ExportDestinationConfiguration.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +S3ExportDestinationConfiguration::S3ExportDestinationConfiguration() : + m_s3LocationHasBeenSet(false) +{ +} + +S3ExportDestinationConfiguration::S3ExportDestinationConfiguration(JsonView jsonValue) : + m_s3LocationHasBeenSet(false) +{ + *this = jsonValue; +} + +S3ExportDestinationConfiguration& S3ExportDestinationConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("S3Location")) + { + m_s3Location = jsonValue.GetString("S3Location"); + + m_s3LocationHasBeenSet = true; + } + + return *this; +} + +JsonValue S3ExportDestinationConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_s3LocationHasBeenSet) + { + payload.WithString("S3Location", m_s3Location); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchState.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchState.cpp new file mode 100644 index 00000000000..d5285e0b541 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchState.cpp @@ -0,0 +1,93 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace MailManager + { + namespace Model + { + namespace SearchStateMapper + { + + static const int QUEUED_HASH = HashingUtils::HashString("QUEUED"); + static const int RUNNING_HASH = HashingUtils::HashString("RUNNING"); + static const int COMPLETED_HASH = HashingUtils::HashString("COMPLETED"); + static const int FAILED_HASH = HashingUtils::HashString("FAILED"); + static const int CANCELLED_HASH = HashingUtils::HashString("CANCELLED"); + + + SearchState GetSearchStateForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == QUEUED_HASH) + { + return SearchState::QUEUED; + } + else if (hashCode == RUNNING_HASH) + { + return SearchState::RUNNING; + } + else if (hashCode == COMPLETED_HASH) + { + return SearchState::COMPLETED; + } + else if (hashCode == FAILED_HASH) + { + return SearchState::FAILED; + } + else if (hashCode == CANCELLED_HASH) + { + return SearchState::CANCELLED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SearchState::NOT_SET; + } + + Aws::String GetNameForSearchState(SearchState enumValue) + { + switch(enumValue) + { + case SearchState::NOT_SET: + return {}; + case SearchState::QUEUED: + return "QUEUED"; + case SearchState::RUNNING: + return "RUNNING"; + case SearchState::COMPLETED: + return "COMPLETED"; + case SearchState::FAILED: + return "FAILED"; + case SearchState::CANCELLED: + return "CANCELLED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SearchStateMapper + } // namespace Model + } // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchStatus.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchStatus.cpp new file mode 100644 index 00000000000..ec67ced7c59 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchStatus.cpp @@ -0,0 +1,103 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +SearchStatus::SearchStatus() : + m_completionTimestampHasBeenSet(false), + m_errorMessageHasBeenSet(false), + m_state(SearchState::NOT_SET), + m_stateHasBeenSet(false), + m_submissionTimestampHasBeenSet(false) +{ +} + +SearchStatus::SearchStatus(JsonView jsonValue) : + m_completionTimestampHasBeenSet(false), + m_errorMessageHasBeenSet(false), + m_state(SearchState::NOT_SET), + m_stateHasBeenSet(false), + m_submissionTimestampHasBeenSet(false) +{ + *this = jsonValue; +} + +SearchStatus& SearchStatus::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("CompletionTimestamp")) + { + m_completionTimestamp = jsonValue.GetDouble("CompletionTimestamp"); + + m_completionTimestampHasBeenSet = true; + } + + if(jsonValue.ValueExists("ErrorMessage")) + { + m_errorMessage = jsonValue.GetString("ErrorMessage"); + + m_errorMessageHasBeenSet = true; + } + + if(jsonValue.ValueExists("State")) + { + m_state = SearchStateMapper::GetSearchStateForName(jsonValue.GetString("State")); + + m_stateHasBeenSet = true; + } + + if(jsonValue.ValueExists("SubmissionTimestamp")) + { + m_submissionTimestamp = jsonValue.GetDouble("SubmissionTimestamp"); + + m_submissionTimestampHasBeenSet = true; + } + + return *this; +} + +JsonValue SearchStatus::Jsonize() const +{ + JsonValue payload; + + if(m_completionTimestampHasBeenSet) + { + payload.WithDouble("CompletionTimestamp", m_completionTimestamp.SecondsWithMSPrecision()); + } + + if(m_errorMessageHasBeenSet) + { + payload.WithString("ErrorMessage", m_errorMessage); + + } + + if(m_stateHasBeenSet) + { + payload.WithString("State", SearchStateMapper::GetNameForSearchState(m_state)); + } + + if(m_submissionTimestampHasBeenSet) + { + payload.WithDouble("SubmissionTimestamp", m_submissionTimestamp.SecondsWithMSPrecision()); + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchSummary.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchSummary.cpp new file mode 100644 index 00000000000..5529fc5f57a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/SearchSummary.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +SearchSummary::SearchSummary() : + m_searchIdHasBeenSet(false), + m_statusHasBeenSet(false) +{ +} + +SearchSummary::SearchSummary(JsonView jsonValue) : + m_searchIdHasBeenSet(false), + m_statusHasBeenSet(false) +{ + *this = jsonValue; +} + +SearchSummary& SearchSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("SearchId")) + { + m_searchId = jsonValue.GetString("SearchId"); + + m_searchIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("Status")) + { + m_status = jsonValue.GetObject("Status"); + + m_statusHasBeenSet = true; + } + + return *this; +} + +JsonValue SearchSummary::Jsonize() const +{ + JsonValue payload; + + if(m_searchIdHasBeenSet) + { + payload.WithString("SearchId", m_searchId); + + } + + if(m_statusHasBeenSet) + { + payload.WithObject("Status", m_status.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/SendAction.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/SendAction.cpp new file mode 100644 index 00000000000..4e8fb5a2af9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/SendAction.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +SendAction::SendAction() : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ +} + +SendAction::SendAction(JsonView jsonValue) : + m_actionFailurePolicy(ActionFailurePolicy::NOT_SET), + m_actionFailurePolicyHasBeenSet(false), + m_roleArnHasBeenSet(false) +{ + *this = jsonValue; +} + +SendAction& SendAction::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("ActionFailurePolicy")) + { + m_actionFailurePolicy = ActionFailurePolicyMapper::GetActionFailurePolicyForName(jsonValue.GetString("ActionFailurePolicy")); + + m_actionFailurePolicyHasBeenSet = true; + } + + if(jsonValue.ValueExists("RoleArn")) + { + m_roleArn = jsonValue.GetString("RoleArn"); + + m_roleArnHasBeenSet = true; + } + + return *this; +} + +JsonValue SendAction::Jsonize() const +{ + JsonValue payload; + + if(m_actionFailurePolicyHasBeenSet) + { + payload.WithString("ActionFailurePolicy", ActionFailurePolicyMapper::GetNameForActionFailurePolicy(m_actionFailurePolicy)); + } + + if(m_roleArnHasBeenSet) + { + payload.WithString("RoleArn", m_roleArn); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveExportRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveExportRequest.cpp new file mode 100644 index 00000000000..953aab53054 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveExportRequest.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartArchiveExportRequest::StartArchiveExportRequest() : + m_archiveIdHasBeenSet(false), + m_exportDestinationConfigurationHasBeenSet(false), + m_filtersHasBeenSet(false), + m_fromTimestampHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_toTimestampHasBeenSet(false) +{ +} + +Aws::String StartArchiveExportRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archiveIdHasBeenSet) + { + payload.WithString("ArchiveId", m_archiveId); + + } + + if(m_exportDestinationConfigurationHasBeenSet) + { + payload.WithObject("ExportDestinationConfiguration", m_exportDestinationConfiguration.Jsonize()); + + } + + if(m_filtersHasBeenSet) + { + payload.WithObject("Filters", m_filters.Jsonize()); + + } + + if(m_fromTimestampHasBeenSet) + { + payload.WithDouble("FromTimestamp", m_fromTimestamp.SecondsWithMSPrecision()); + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("MaxResults", m_maxResults); + + } + + if(m_toTimestampHasBeenSet) + { + payload.WithDouble("ToTimestamp", m_toTimestamp.SecondsWithMSPrecision()); + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection StartArchiveExportRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.StartArchiveExport")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveExportResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveExportResult.cpp new file mode 100644 index 00000000000..1c3e991b288 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveExportResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartArchiveExportResult::StartArchiveExportResult() +{ +} + +StartArchiveExportResult::StartArchiveExportResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartArchiveExportResult& StartArchiveExportResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("ExportId")) + { + m_exportId = jsonValue.GetString("ExportId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveSearchRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveSearchRequest.cpp new file mode 100644 index 00000000000..9f7a75ecb0e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveSearchRequest.cpp @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StartArchiveSearchRequest::StartArchiveSearchRequest() : + m_archiveIdHasBeenSet(false), + m_filtersHasBeenSet(false), + m_fromTimestampHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_toTimestampHasBeenSet(false) +{ +} + +Aws::String StartArchiveSearchRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archiveIdHasBeenSet) + { + payload.WithString("ArchiveId", m_archiveId); + + } + + if(m_filtersHasBeenSet) + { + payload.WithObject("Filters", m_filters.Jsonize()); + + } + + if(m_fromTimestampHasBeenSet) + { + payload.WithDouble("FromTimestamp", m_fromTimestamp.SecondsWithMSPrecision()); + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("MaxResults", m_maxResults); + + } + + if(m_toTimestampHasBeenSet) + { + payload.WithDouble("ToTimestamp", m_toTimestamp.SecondsWithMSPrecision()); + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection StartArchiveSearchRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.StartArchiveSearch")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveSearchResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveSearchResult.cpp new file mode 100644 index 00000000000..d9040e029a2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/StartArchiveSearchResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StartArchiveSearchResult::StartArchiveSearchResult() +{ +} + +StartArchiveSearchResult::StartArchiveSearchResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StartArchiveSearchResult& StartArchiveSearchResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("SearchId")) + { + m_searchId = jsonValue.GetString("SearchId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveExportRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveExportRequest.cpp new file mode 100644 index 00000000000..0c6c4f2734c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveExportRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StopArchiveExportRequest::StopArchiveExportRequest() : + m_exportIdHasBeenSet(false) +{ +} + +Aws::String StopArchiveExportRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_exportIdHasBeenSet) + { + payload.WithString("ExportId", m_exportId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection StopArchiveExportRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.StopArchiveExport")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveExportResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveExportResult.cpp new file mode 100644 index 00000000000..06d655a59de --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveExportResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StopArchiveExportResult::StopArchiveExportResult() +{ +} + +StopArchiveExportResult::StopArchiveExportResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StopArchiveExportResult& StopArchiveExportResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveSearchRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveSearchRequest.cpp new file mode 100644 index 00000000000..b02b466c81e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveSearchRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +StopArchiveSearchRequest::StopArchiveSearchRequest() : + m_searchIdHasBeenSet(false) +{ +} + +Aws::String StopArchiveSearchRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_searchIdHasBeenSet) + { + payload.WithString("SearchId", m_searchId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection StopArchiveSearchRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.StopArchiveSearch")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveSearchResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveSearchResult.cpp new file mode 100644 index 00000000000..d811e0fc67d --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/StopArchiveSearchResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +StopArchiveSearchResult::StopArchiveSearchResult() +{ +} + +StopArchiveSearchResult::StopArchiveSearchResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +StopArchiveSearchResult& StopArchiveSearchResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/Tag.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/Tag.cpp new file mode 100644 index 00000000000..f8dfc570ce6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/Tag.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +Tag::Tag() : + m_keyHasBeenSet(false), + m_valueHasBeenSet(false) +{ +} + +Tag::Tag(JsonView jsonValue) : + m_keyHasBeenSet(false), + m_valueHasBeenSet(false) +{ + *this = jsonValue; +} + +Tag& Tag::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("Key")) + { + m_key = jsonValue.GetString("Key"); + + m_keyHasBeenSet = true; + } + + if(jsonValue.ValueExists("Value")) + { + m_value = jsonValue.GetString("Value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue Tag::Jsonize() const +{ + JsonValue payload; + + if(m_keyHasBeenSet) + { + payload.WithString("Key", m_key); + + } + + if(m_valueHasBeenSet) + { + payload.WithString("Value", m_value); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/TagResourceRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/TagResourceRequest.cpp new file mode 100644 index 00000000000..0b398b5cb41 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/TagResourceRequest.cpp @@ -0,0 +1,55 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +TagResourceRequest::TagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagsHasBeenSet(false) +{ +} + +Aws::String TagResourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_resourceArnHasBeenSet) + { + payload.WithString("ResourceArn", m_resourceArn); + + } + + if(m_tagsHasBeenSet) + { + Aws::Utils::Array tagsJsonList(m_tags.size()); + for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) + { + tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); + } + payload.WithArray("Tags", std::move(tagsJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection TagResourceRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.TagResource")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/TagResourceResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/TagResourceResult.cpp new file mode 100644 index 00000000000..a5c880b04c3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/TagResourceResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +TagResourceResult::TagResourceResult() +{ +} + +TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/TrafficPolicy.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/TrafficPolicy.cpp new file mode 100644 index 00000000000..da51976dee1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/TrafficPolicy.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace MailManager +{ +namespace Model +{ + +TrafficPolicy::TrafficPolicy() : + m_defaultAction(AcceptAction::NOT_SET), + m_defaultActionHasBeenSet(false), + m_trafficPolicyIdHasBeenSet(false), + m_trafficPolicyNameHasBeenSet(false) +{ +} + +TrafficPolicy::TrafficPolicy(JsonView jsonValue) : + m_defaultAction(AcceptAction::NOT_SET), + m_defaultActionHasBeenSet(false), + m_trafficPolicyIdHasBeenSet(false), + m_trafficPolicyNameHasBeenSet(false) +{ + *this = jsonValue; +} + +TrafficPolicy& TrafficPolicy::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("DefaultAction")) + { + m_defaultAction = AcceptActionMapper::GetAcceptActionForName(jsonValue.GetString("DefaultAction")); + + m_defaultActionHasBeenSet = true; + } + + if(jsonValue.ValueExists("TrafficPolicyId")) + { + m_trafficPolicyId = jsonValue.GetString("TrafficPolicyId"); + + m_trafficPolicyIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("TrafficPolicyName")) + { + m_trafficPolicyName = jsonValue.GetString("TrafficPolicyName"); + + m_trafficPolicyNameHasBeenSet = true; + } + + return *this; +} + +JsonValue TrafficPolicy::Jsonize() const +{ + JsonValue payload; + + if(m_defaultActionHasBeenSet) + { + payload.WithString("DefaultAction", AcceptActionMapper::GetNameForAcceptAction(m_defaultAction)); + } + + if(m_trafficPolicyIdHasBeenSet) + { + payload.WithString("TrafficPolicyId", m_trafficPolicyId); + + } + + if(m_trafficPolicyNameHasBeenSet) + { + payload.WithString("TrafficPolicyName", m_trafficPolicyName); + + } + + return payload; +} + +} // namespace Model +} // namespace MailManager +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UntagResourceRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UntagResourceRequest.cpp new file mode 100644 index 00000000000..4d66ec9b9de --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UntagResourceRequest.cpp @@ -0,0 +1,55 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UntagResourceRequest::UntagResourceRequest() : + m_resourceArnHasBeenSet(false), + m_tagKeysHasBeenSet(false) +{ +} + +Aws::String UntagResourceRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_resourceArnHasBeenSet) + { + payload.WithString("ResourceArn", m_resourceArn); + + } + + if(m_tagKeysHasBeenSet) + { + Aws::Utils::Array tagKeysJsonList(m_tagKeys.size()); + for(unsigned tagKeysIndex = 0; tagKeysIndex < tagKeysJsonList.GetLength(); ++tagKeysIndex) + { + tagKeysJsonList[tagKeysIndex].AsString(m_tagKeys[tagKeysIndex]); + } + payload.WithArray("TagKeys", std::move(tagKeysJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UntagResourceRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.UntagResource")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UntagResourceResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UntagResourceResult.cpp new file mode 100644 index 00000000000..68b48c44869 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UntagResourceResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UntagResourceResult::UntagResourceResult() +{ +} + +UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateArchiveRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateArchiveRequest.cpp new file mode 100644 index 00000000000..06b1da04d8e --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateArchiveRequest.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateArchiveRequest::UpdateArchiveRequest() : + m_archiveIdHasBeenSet(false), + m_archiveNameHasBeenSet(false), + m_retentionHasBeenSet(false) +{ +} + +Aws::String UpdateArchiveRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_archiveIdHasBeenSet) + { + payload.WithString("ArchiveId", m_archiveId); + + } + + if(m_archiveNameHasBeenSet) + { + payload.WithString("ArchiveName", m_archiveName); + + } + + if(m_retentionHasBeenSet) + { + payload.WithObject("Retention", m_retention.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UpdateArchiveRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.UpdateArchive")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateArchiveResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateArchiveResult.cpp new file mode 100644 index 00000000000..1873cf9c239 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateArchiveResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateArchiveResult::UpdateArchiveResult() +{ +} + +UpdateArchiveResult::UpdateArchiveResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateArchiveResult& UpdateArchiveResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateIngressPointRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateIngressPointRequest.cpp new file mode 100644 index 00000000000..d09a585b142 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateIngressPointRequest.cpp @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateIngressPointRequest::UpdateIngressPointRequest() : + m_ingressPointConfigurationHasBeenSet(false), + m_ingressPointIdHasBeenSet(false), + m_ingressPointNameHasBeenSet(false), + m_ruleSetIdHasBeenSet(false), + m_statusToUpdate(IngressPointStatusToUpdate::NOT_SET), + m_statusToUpdateHasBeenSet(false), + m_trafficPolicyIdHasBeenSet(false) +{ +} + +Aws::String UpdateIngressPointRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_ingressPointConfigurationHasBeenSet) + { + payload.WithObject("IngressPointConfiguration", m_ingressPointConfiguration.Jsonize()); + + } + + if(m_ingressPointIdHasBeenSet) + { + payload.WithString("IngressPointId", m_ingressPointId); + + } + + if(m_ingressPointNameHasBeenSet) + { + payload.WithString("IngressPointName", m_ingressPointName); + + } + + if(m_ruleSetIdHasBeenSet) + { + payload.WithString("RuleSetId", m_ruleSetId); + + } + + if(m_statusToUpdateHasBeenSet) + { + payload.WithString("StatusToUpdate", IngressPointStatusToUpdateMapper::GetNameForIngressPointStatusToUpdate(m_statusToUpdate)); + } + + if(m_trafficPolicyIdHasBeenSet) + { + payload.WithString("TrafficPolicyId", m_trafficPolicyId); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UpdateIngressPointRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.UpdateIngressPoint")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateIngressPointResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateIngressPointResult.cpp new file mode 100644 index 00000000000..18ca152cf6b --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateIngressPointResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateIngressPointResult::UpdateIngressPointResult() +{ +} + +UpdateIngressPointResult::UpdateIngressPointResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateIngressPointResult& UpdateIngressPointResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRelayRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRelayRequest.cpp new file mode 100644 index 00000000000..18aaccf98f3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRelayRequest.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateRelayRequest::UpdateRelayRequest() : + m_authenticationHasBeenSet(false), + m_relayIdHasBeenSet(false), + m_relayNameHasBeenSet(false), + m_serverNameHasBeenSet(false), + m_serverPort(0), + m_serverPortHasBeenSet(false) +{ +} + +Aws::String UpdateRelayRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_authenticationHasBeenSet) + { + payload.WithObject("Authentication", m_authentication.Jsonize()); + + } + + if(m_relayIdHasBeenSet) + { + payload.WithString("RelayId", m_relayId); + + } + + if(m_relayNameHasBeenSet) + { + payload.WithString("RelayName", m_relayName); + + } + + if(m_serverNameHasBeenSet) + { + payload.WithString("ServerName", m_serverName); + + } + + if(m_serverPortHasBeenSet) + { + payload.WithInteger("ServerPort", m_serverPort); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UpdateRelayRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.UpdateRelay")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRelayResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRelayResult.cpp new file mode 100644 index 00000000000..27fef69a687 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRelayResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateRelayResult::UpdateRelayResult() +{ +} + +UpdateRelayResult::UpdateRelayResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateRelayResult& UpdateRelayResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRuleSetRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRuleSetRequest.cpp new file mode 100644 index 00000000000..3d2ed2f165a --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRuleSetRequest.cpp @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateRuleSetRequest::UpdateRuleSetRequest() : + m_ruleSetIdHasBeenSet(false), + m_ruleSetNameHasBeenSet(false), + m_rulesHasBeenSet(false) +{ +} + +Aws::String UpdateRuleSetRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_ruleSetIdHasBeenSet) + { + payload.WithString("RuleSetId", m_ruleSetId); + + } + + if(m_ruleSetNameHasBeenSet) + { + payload.WithString("RuleSetName", m_ruleSetName); + + } + + if(m_rulesHasBeenSet) + { + Aws::Utils::Array rulesJsonList(m_rules.size()); + for(unsigned rulesIndex = 0; rulesIndex < rulesJsonList.GetLength(); ++rulesIndex) + { + rulesJsonList[rulesIndex].AsObject(m_rules[rulesIndex].Jsonize()); + } + payload.WithArray("Rules", std::move(rulesJsonList)); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UpdateRuleSetRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.UpdateRuleSet")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRuleSetResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRuleSetResult.cpp new file mode 100644 index 00000000000..67f45103a3c --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateRuleSetResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateRuleSetResult::UpdateRuleSetResult() +{ +} + +UpdateRuleSetResult::UpdateRuleSetResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateRuleSetResult& UpdateRuleSetResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateTrafficPolicyRequest.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateTrafficPolicyRequest.cpp new file mode 100644 index 00000000000..f9d23845842 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateTrafficPolicyRequest.cpp @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateTrafficPolicyRequest::UpdateTrafficPolicyRequest() : + m_defaultAction(AcceptAction::NOT_SET), + m_defaultActionHasBeenSet(false), + m_maxMessageSizeBytes(0), + m_maxMessageSizeBytesHasBeenSet(false), + m_policyStatementsHasBeenSet(false), + m_trafficPolicyIdHasBeenSet(false), + m_trafficPolicyNameHasBeenSet(false) +{ +} + +Aws::String UpdateTrafficPolicyRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_defaultActionHasBeenSet) + { + payload.WithString("DefaultAction", AcceptActionMapper::GetNameForAcceptAction(m_defaultAction)); + } + + if(m_maxMessageSizeBytesHasBeenSet) + { + payload.WithInteger("MaxMessageSizeBytes", m_maxMessageSizeBytes); + + } + + if(m_policyStatementsHasBeenSet) + { + Aws::Utils::Array policyStatementsJsonList(m_policyStatements.size()); + for(unsigned policyStatementsIndex = 0; policyStatementsIndex < policyStatementsJsonList.GetLength(); ++policyStatementsIndex) + { + policyStatementsJsonList[policyStatementsIndex].AsObject(m_policyStatements[policyStatementsIndex].Jsonize()); + } + payload.WithArray("PolicyStatements", std::move(policyStatementsJsonList)); + + } + + if(m_trafficPolicyIdHasBeenSet) + { + payload.WithString("TrafficPolicyId", m_trafficPolicyId); + + } + + if(m_trafficPolicyNameHasBeenSet) + { + payload.WithString("TrafficPolicyName", m_trafficPolicyName); + + } + + return payload.View().WriteReadable(); +} + +Aws::Http::HeaderValueCollection UpdateTrafficPolicyRequest::GetRequestSpecificHeaders() const +{ + Aws::Http::HeaderValueCollection headers; + headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "MailManagerSvc.UpdateTrafficPolicy")); + return headers; + +} + + + + diff --git a/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateTrafficPolicyResult.cpp b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateTrafficPolicyResult.cpp new file mode 100644 index 00000000000..a4de277c5f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-mailmanager/source/model/UpdateTrafficPolicyResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::MailManager::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateTrafficPolicyResult::UpdateTrafficPolicyResult() +{ +} + +UpdateTrafficPolicyResult::UpdateTrafficPolicyResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateTrafficPolicyResult& UpdateTrafficPolicyResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-pi/include/aws/pi/model/FineGrainedAction.h b/generated/src/aws-cpp-sdk-pi/include/aws/pi/model/FineGrainedAction.h new file mode 100644 index 00000000000..82955a70b38 --- /dev/null +++ b/generated/src/aws-cpp-sdk-pi/include/aws/pi/model/FineGrainedAction.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace PI +{ +namespace Model +{ + enum class FineGrainedAction + { + NOT_SET, + DescribeDimensionKeys, + GetDimensionKeyDetails, + GetResourceMetrics + }; + +namespace FineGrainedActionMapper +{ +AWS_PI_API FineGrainedAction GetFineGrainedActionForName(const Aws::String& name); + +AWS_PI_API Aws::String GetNameForFineGrainedAction(FineGrainedAction value); +} // namespace FineGrainedActionMapper +} // namespace Model +} // namespace PI +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pi/include/aws/pi/model/ListAvailableResourceDimensionsRequest.h b/generated/src/aws-cpp-sdk-pi/include/aws/pi/model/ListAvailableResourceDimensionsRequest.h index a91f25116db..0996ec8aeb0 100644 --- a/generated/src/aws-cpp-sdk-pi/include/aws/pi/model/ListAvailableResourceDimensionsRequest.h +++ b/generated/src/aws-cpp-sdk-pi/include/aws/pi/model/ListAvailableResourceDimensionsRequest.h @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Aws @@ -286,6 +287,79 @@ namespace Model */ inline ListAvailableResourceDimensionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + /** + *

    The actions to discover the dimensions you are authorized to access. If you + * specify multiple actions, then the response will contain the dimensions common + * for all the actions.

    When you don't specify this request parameter or + * provide an empty list, the response contains all the available dimensions for + * the target database engine whether or not you are authorized to access them.

    + */ + inline const Aws::Vector& GetAuthorizedActions() const{ return m_authorizedActions; } + + /** + *

    The actions to discover the dimensions you are authorized to access. If you + * specify multiple actions, then the response will contain the dimensions common + * for all the actions.

    When you don't specify this request parameter or + * provide an empty list, the response contains all the available dimensions for + * the target database engine whether or not you are authorized to access them.

    + */ + inline bool AuthorizedActionsHasBeenSet() const { return m_authorizedActionsHasBeenSet; } + + /** + *

    The actions to discover the dimensions you are authorized to access. If you + * specify multiple actions, then the response will contain the dimensions common + * for all the actions.

    When you don't specify this request parameter or + * provide an empty list, the response contains all the available dimensions for + * the target database engine whether or not you are authorized to access them.

    + */ + inline void SetAuthorizedActions(const Aws::Vector& value) { m_authorizedActionsHasBeenSet = true; m_authorizedActions = value; } + + /** + *

    The actions to discover the dimensions you are authorized to access. If you + * specify multiple actions, then the response will contain the dimensions common + * for all the actions.

    When you don't specify this request parameter or + * provide an empty list, the response contains all the available dimensions for + * the target database engine whether or not you are authorized to access them.

    + */ + inline void SetAuthorizedActions(Aws::Vector&& value) { m_authorizedActionsHasBeenSet = true; m_authorizedActions = std::move(value); } + + /** + *

    The actions to discover the dimensions you are authorized to access. If you + * specify multiple actions, then the response will contain the dimensions common + * for all the actions.

    When you don't specify this request parameter or + * provide an empty list, the response contains all the available dimensions for + * the target database engine whether or not you are authorized to access them.

    + */ + inline ListAvailableResourceDimensionsRequest& WithAuthorizedActions(const Aws::Vector& value) { SetAuthorizedActions(value); return *this;} + + /** + *

    The actions to discover the dimensions you are authorized to access. If you + * specify multiple actions, then the response will contain the dimensions common + * for all the actions.

    When you don't specify this request parameter or + * provide an empty list, the response contains all the available dimensions for + * the target database engine whether or not you are authorized to access them.

    + */ + inline ListAvailableResourceDimensionsRequest& WithAuthorizedActions(Aws::Vector&& value) { SetAuthorizedActions(std::move(value)); return *this;} + + /** + *

    The actions to discover the dimensions you are authorized to access. If you + * specify multiple actions, then the response will contain the dimensions common + * for all the actions.

    When you don't specify this request parameter or + * provide an empty list, the response contains all the available dimensions for + * the target database engine whether or not you are authorized to access them.

    + */ + inline ListAvailableResourceDimensionsRequest& AddAuthorizedActions(const FineGrainedAction& value) { m_authorizedActionsHasBeenSet = true; m_authorizedActions.push_back(value); return *this; } + + /** + *

    The actions to discover the dimensions you are authorized to access. If you + * specify multiple actions, then the response will contain the dimensions common + * for all the actions.

    When you don't specify this request parameter or + * provide an empty list, the response contains all the available dimensions for + * the target database engine whether or not you are authorized to access them.

    + */ + inline ListAvailableResourceDimensionsRequest& AddAuthorizedActions(FineGrainedAction&& value) { m_authorizedActionsHasBeenSet = true; m_authorizedActions.push_back(std::move(value)); return *this; } + private: ServiceType m_serviceType; @@ -302,6 +376,9 @@ namespace Model Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; + + Aws::Vector m_authorizedActions; + bool m_authorizedActionsHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-pi/source/model/FineGrainedAction.cpp b/generated/src/aws-cpp-sdk-pi/source/model/FineGrainedAction.cpp new file mode 100644 index 00000000000..bd5850d42ef --- /dev/null +++ b/generated/src/aws-cpp-sdk-pi/source/model/FineGrainedAction.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace PI + { + namespace Model + { + namespace FineGrainedActionMapper + { + + static const int DescribeDimensionKeys_HASH = HashingUtils::HashString("DescribeDimensionKeys"); + static const int GetDimensionKeyDetails_HASH = HashingUtils::HashString("GetDimensionKeyDetails"); + static const int GetResourceMetrics_HASH = HashingUtils::HashString("GetResourceMetrics"); + + + FineGrainedAction GetFineGrainedActionForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == DescribeDimensionKeys_HASH) + { + return FineGrainedAction::DescribeDimensionKeys; + } + else if (hashCode == GetDimensionKeyDetails_HASH) + { + return FineGrainedAction::GetDimensionKeyDetails; + } + else if (hashCode == GetResourceMetrics_HASH) + { + return FineGrainedAction::GetResourceMetrics; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return FineGrainedAction::NOT_SET; + } + + Aws::String GetNameForFineGrainedAction(FineGrainedAction enumValue) + { + switch(enumValue) + { + case FineGrainedAction::NOT_SET: + return {}; + case FineGrainedAction::DescribeDimensionKeys: + return "DescribeDimensionKeys"; + case FineGrainedAction::GetDimensionKeyDetails: + return "GetDimensionKeyDetails"; + case FineGrainedAction::GetResourceMetrics: + return "GetResourceMetrics"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace FineGrainedActionMapper + } // namespace Model + } // namespace PI +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-pi/source/model/ListAvailableResourceDimensionsRequest.cpp b/generated/src/aws-cpp-sdk-pi/source/model/ListAvailableResourceDimensionsRequest.cpp index 2dea38f8952..bd3bbcdb066 100644 --- a/generated/src/aws-cpp-sdk-pi/source/model/ListAvailableResourceDimensionsRequest.cpp +++ b/generated/src/aws-cpp-sdk-pi/source/model/ListAvailableResourceDimensionsRequest.cpp @@ -19,7 +19,8 @@ ListAvailableResourceDimensionsRequest::ListAvailableResourceDimensionsRequest() m_metricsHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), - m_nextTokenHasBeenSet(false) + m_nextTokenHasBeenSet(false), + m_authorizedActionsHasBeenSet(false) { } @@ -61,6 +62,17 @@ Aws::String ListAvailableResourceDimensionsRequest::SerializePayload() const } + if(m_authorizedActionsHasBeenSet) + { + Aws::Utils::Array authorizedActionsJsonList(m_authorizedActions.size()); + for(unsigned authorizedActionsIndex = 0; authorizedActionsIndex < authorizedActionsJsonList.GetLength(); ++authorizedActionsIndex) + { + authorizedActionsJsonList[authorizedActionsIndex].AsString(FineGrainedActionMapper::GetNameForFineGrainedAction(m_authorizedActions[authorizedActionsIndex])); + } + payload.WithArray("AuthorizedActions", std::move(authorizedActionsJsonList)); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBInstanceRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBInstanceRequest.h index acbe03c6600..eb830e8bebf 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBInstanceRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/CreateDBInstanceRequest.h @@ -2523,106 +2523,162 @@ namespace Model /** - *

    The license model information for this DB instance.

    This setting - * doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid - * Values:

    • RDS for Db2 - bring-your-own-license

      - *
    • RDS for MariaDB - general-public-license

    • - *
    • RDS for Microsoft SQL Server - license-included

    • - *
    • RDS for MySQL - general-public-license

    • - *

      RDS for Oracle - bring-your-own-license | license-included

      - *
    • RDS for PostgreSQL - postgresql-license

    • - *
    + *

    The license model information for this DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    The + * default for RDS for Db2 is bring-your-own-license.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    */ inline const Aws::String& GetLicenseModel() const{ return m_licenseModel; } /** - *

    The license model information for this DB instance.

    This setting - * doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid - * Values:

    • RDS for Db2 - bring-your-own-license

      - *
    • RDS for MariaDB - general-public-license

    • - *
    • RDS for Microsoft SQL Server - license-included

    • - *
    • RDS for MySQL - general-public-license

    • - *

      RDS for Oracle - bring-your-own-license | license-included

      - *
    • RDS for PostgreSQL - postgresql-license

    • - *
    + *

    The license model information for this DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    The + * default for RDS for Db2 is bring-your-own-license.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    */ inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; } /** - *

    The license model information for this DB instance.

    This setting - * doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid - * Values:

    • RDS for Db2 - bring-your-own-license

      - *
    • RDS for MariaDB - general-public-license

    • - *
    • RDS for Microsoft SQL Server - license-included

    • - *
    • RDS for MySQL - general-public-license

    • - *

      RDS for Oracle - bring-your-own-license | license-included

      - *
    • RDS for PostgreSQL - postgresql-license

    • - *
    + *

    The license model information for this DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    The + * default for RDS for Db2 is bring-your-own-license.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    */ inline void SetLicenseModel(const Aws::String& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; } /** - *

    The license model information for this DB instance.

    This setting - * doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid - * Values:

    • RDS for Db2 - bring-your-own-license

      - *
    • RDS for MariaDB - general-public-license

    • - *
    • RDS for Microsoft SQL Server - license-included

    • - *
    • RDS for MySQL - general-public-license

    • - *

      RDS for Oracle - bring-your-own-license | license-included

      - *
    • RDS for PostgreSQL - postgresql-license

    • - *
    + *

    The license model information for this DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    The + * default for RDS for Db2 is bring-your-own-license.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    */ inline void SetLicenseModel(Aws::String&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); } /** - *

    The license model information for this DB instance.

    This setting - * doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid - * Values:

    • RDS for Db2 - bring-your-own-license

      - *
    • RDS for MariaDB - general-public-license

    • - *
    • RDS for Microsoft SQL Server - license-included

    • - *
    • RDS for MySQL - general-public-license

    • - *

      RDS for Oracle - bring-your-own-license | license-included

      - *
    • RDS for PostgreSQL - postgresql-license

    • - *
    + *

    The license model information for this DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    The + * default for RDS for Db2 is bring-your-own-license.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    */ inline void SetLicenseModel(const char* value) { m_licenseModelHasBeenSet = true; m_licenseModel.assign(value); } /** - *

    The license model information for this DB instance.

    This setting - * doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid - * Values:

    • RDS for Db2 - bring-your-own-license

      - *
    • RDS for MariaDB - general-public-license

    • - *
    • RDS for Microsoft SQL Server - license-included

    • - *
    • RDS for MySQL - general-public-license

    • - *

      RDS for Oracle - bring-your-own-license | license-included

      - *
    • RDS for PostgreSQL - postgresql-license

    • - *
    + *

    The license model information for this DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    The + * default for RDS for Db2 is bring-your-own-license.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    */ inline CreateDBInstanceRequest& WithLicenseModel(const Aws::String& value) { SetLicenseModel(value); return *this;} /** - *

    The license model information for this DB instance.

    This setting - * doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid - * Values:

    • RDS for Db2 - bring-your-own-license

      - *
    • RDS for MariaDB - general-public-license

    • - *
    • RDS for Microsoft SQL Server - license-included

    • - *
    • RDS for MySQL - general-public-license

    • - *

      RDS for Oracle - bring-your-own-license | license-included

      - *
    • RDS for PostgreSQL - postgresql-license

    • - *
    + *

    The license model information for this DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    The + * default for RDS for Db2 is bring-your-own-license.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    */ inline CreateDBInstanceRequest& WithLicenseModel(Aws::String&& value) { SetLicenseModel(std::move(value)); return *this;} /** - *

    The license model information for this DB instance.

    This setting - * doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid - * Values:

    • RDS for Db2 - bring-your-own-license

      - *
    • RDS for MariaDB - general-public-license

    • - *
    • RDS for Microsoft SQL Server - license-included

    • - *
    • RDS for MySQL - general-public-license

    • - *

      RDS for Oracle - bring-your-own-license | license-included

      - *
    • RDS for PostgreSQL - postgresql-license

    • - *
    + *

    The license model information for this DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    The + * default for RDS for Db2 is bring-your-own-license.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    */ inline CreateDBInstanceRequest& WithLicenseModel(const char* value) { SetLicenseModel(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBInstance.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBInstance.h index 76bfb5bb4fd..bf2ce156663 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBInstance.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/DBInstance.h @@ -1259,49 +1259,49 @@ namespace Model /** *

    The license model information for this DB instance. This setting doesn't - * apply to RDS Custom DB instances.

    + * apply to Amazon Aurora or RDS Custom DB instances.

    */ inline const Aws::String& GetLicenseModel() const{ return m_licenseModel; } /** *

    The license model information for this DB instance. This setting doesn't - * apply to RDS Custom DB instances.

    + * apply to Amazon Aurora or RDS Custom DB instances.

    */ inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; } /** *

    The license model information for this DB instance. This setting doesn't - * apply to RDS Custom DB instances.

    + * apply to Amazon Aurora or RDS Custom DB instances.

    */ inline void SetLicenseModel(const Aws::String& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; } /** *

    The license model information for this DB instance. This setting doesn't - * apply to RDS Custom DB instances.

    + * apply to Amazon Aurora or RDS Custom DB instances.

    */ inline void SetLicenseModel(Aws::String&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); } /** *

    The license model information for this DB instance. This setting doesn't - * apply to RDS Custom DB instances.

    + * apply to Amazon Aurora or RDS Custom DB instances.

    */ inline void SetLicenseModel(const char* value) { m_licenseModelHasBeenSet = true; m_licenseModel.assign(value); } /** *

    The license model information for this DB instance. This setting doesn't - * apply to RDS Custom DB instances.

    + * apply to Amazon Aurora or RDS Custom DB instances.

    */ inline DBInstance& WithLicenseModel(const Aws::String& value) { SetLicenseModel(value); return *this;} /** *

    The license model information for this DB instance. This setting doesn't - * apply to RDS Custom DB instances.

    + * apply to Amazon Aurora or RDS Custom DB instances.

    */ inline DBInstance& WithLicenseModel(Aws::String&& value) { SetLicenseModel(std::move(value)); return *this;} /** *

    The license model information for this DB instance. This setting doesn't - * apply to RDS Custom DB instances.

    + * apply to Amazon Aurora or RDS Custom DB instances.

    */ inline DBInstance& WithLicenseModel(const char* value) { SetLicenseModel(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromDBSnapshotRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromDBSnapshotRequest.h index 35f87ad2c9c..cf5707c68ff 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromDBSnapshotRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceFromDBSnapshotRequest.h @@ -572,66 +572,162 @@ namespace Model /** - *

    License model information for the restored DB instance.

    This setting - * doesn't apply to RDS Custom.

    Default: Same as source.

    Valid - * Values: license-included | bring-your-own-license | - * general-public-license

    + *

    License model information for the restored DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline const Aws::String& GetLicenseModel() const{ return m_licenseModel; } /** - *

    License model information for the restored DB instance.

    This setting - * doesn't apply to RDS Custom.

    Default: Same as source.

    Valid - * Values: license-included | bring-your-own-license | - * general-public-license

    + *

    License model information for the restored DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; } /** - *

    License model information for the restored DB instance.

    This setting - * doesn't apply to RDS Custom.

    Default: Same as source.

    Valid - * Values: license-included | bring-your-own-license | - * general-public-license

    + *

    License model information for the restored DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline void SetLicenseModel(const Aws::String& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; } /** - *

    License model information for the restored DB instance.

    This setting - * doesn't apply to RDS Custom.

    Default: Same as source.

    Valid - * Values: license-included | bring-your-own-license | - * general-public-license

    + *

    License model information for the restored DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline void SetLicenseModel(Aws::String&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); } /** - *

    License model information for the restored DB instance.

    This setting - * doesn't apply to RDS Custom.

    Default: Same as source.

    Valid - * Values: license-included | bring-your-own-license | - * general-public-license

    + *

    License model information for the restored DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline void SetLicenseModel(const char* value) { m_licenseModelHasBeenSet = true; m_licenseModel.assign(value); } /** - *

    License model information for the restored DB instance.

    This setting - * doesn't apply to RDS Custom.

    Default: Same as source.

    Valid - * Values: license-included | bring-your-own-license | - * general-public-license

    + *

    License model information for the restored DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline RestoreDBInstanceFromDBSnapshotRequest& WithLicenseModel(const Aws::String& value) { SetLicenseModel(value); return *this;} /** - *

    License model information for the restored DB instance.

    This setting - * doesn't apply to RDS Custom.

    Default: Same as source.

    Valid - * Values: license-included | bring-your-own-license | - * general-public-license

    + *

    License model information for the restored DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline RestoreDBInstanceFromDBSnapshotRequest& WithLicenseModel(Aws::String&& value) { SetLicenseModel(std::move(value)); return *this;} /** - *

    License model information for the restored DB instance.

    This setting - * doesn't apply to RDS Custom.

    Default: Same as source.

    Valid - * Values: license-included | bring-your-own-license | - * general-public-license

    + *

    License model information for the restored DB instance.

    License + * models for RDS for Db2 require additional configuration. The Bring Your Own + * License (BYOL) model requires a custom parameter group. The Db2 license through + * Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline RestoreDBInstanceFromDBSnapshotRequest& WithLicenseModel(const char* value) { SetLicenseModel(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceToPointInTimeRequest.h b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceToPointInTimeRequest.h index debb76c22a9..ffe1786a13e 100644 --- a/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceToPointInTimeRequest.h +++ b/generated/src/aws-cpp-sdk-rds/include/aws/rds/model/RestoreDBInstanceToPointInTimeRequest.h @@ -621,66 +621,162 @@ namespace Model /** - *

    The license model information for the restored DB instance.

    This - * setting doesn't apply to RDS Custom.

    Valid Values: - * license-included | bring-your-own-license | - * general-public-license

    Default: Same as the source.

    + *

    The license model information for the restored DB instance.

    + *

    License models for RDS for Db2 require additional configuration. The Bring + * Your Own License (BYOL) model requires a custom parameter group. The Db2 license + * through Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline const Aws::String& GetLicenseModel() const{ return m_licenseModel; } /** - *

    The license model information for the restored DB instance.

    This - * setting doesn't apply to RDS Custom.

    Valid Values: - * license-included | bring-your-own-license | - * general-public-license

    Default: Same as the source.

    + *

    The license model information for the restored DB instance.

    + *

    License models for RDS for Db2 require additional configuration. The Bring + * Your Own License (BYOL) model requires a custom parameter group. The Db2 license + * through Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; } /** - *

    The license model information for the restored DB instance.

    This - * setting doesn't apply to RDS Custom.

    Valid Values: - * license-included | bring-your-own-license | - * general-public-license

    Default: Same as the source.

    + *

    The license model information for the restored DB instance.

    + *

    License models for RDS for Db2 require additional configuration. The Bring + * Your Own License (BYOL) model requires a custom parameter group. The Db2 license + * through Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline void SetLicenseModel(const Aws::String& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; } /** - *

    The license model information for the restored DB instance.

    This - * setting doesn't apply to RDS Custom.

    Valid Values: - * license-included | bring-your-own-license | - * general-public-license

    Default: Same as the source.

    + *

    The license model information for the restored DB instance.

    + *

    License models for RDS for Db2 require additional configuration. The Bring + * Your Own License (BYOL) model requires a custom parameter group. The Db2 license + * through Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline void SetLicenseModel(Aws::String&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); } /** - *

    The license model information for the restored DB instance.

    This - * setting doesn't apply to RDS Custom.

    Valid Values: - * license-included | bring-your-own-license | - * general-public-license

    Default: Same as the source.

    + *

    The license model information for the restored DB instance.

    + *

    License models for RDS for Db2 require additional configuration. The Bring + * Your Own License (BYOL) model requires a custom parameter group. The Db2 license + * through Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline void SetLicenseModel(const char* value) { m_licenseModelHasBeenSet = true; m_licenseModel.assign(value); } /** - *

    The license model information for the restored DB instance.

    This - * setting doesn't apply to RDS Custom.

    Valid Values: - * license-included | bring-your-own-license | - * general-public-license

    Default: Same as the source.

    + *

    The license model information for the restored DB instance.

    + *

    License models for RDS for Db2 require additional configuration. The Bring + * Your Own License (BYOL) model requires a custom parameter group. The Db2 license + * through Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline RestoreDBInstanceToPointInTimeRequest& WithLicenseModel(const Aws::String& value) { SetLicenseModel(value); return *this;} /** - *

    The license model information for the restored DB instance.

    This - * setting doesn't apply to RDS Custom.

    Valid Values: - * license-included | bring-your-own-license | - * general-public-license

    Default: Same as the source.

    + *

    The license model information for the restored DB instance.

    + *

    License models for RDS for Db2 require additional configuration. The Bring + * Your Own License (BYOL) model requires a custom parameter group. The Db2 license + * through Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline RestoreDBInstanceToPointInTimeRequest& WithLicenseModel(Aws::String&& value) { SetLicenseModel(std::move(value)); return *this;} /** - *

    The license model information for the restored DB instance.

    This - * setting doesn't apply to RDS Custom.

    Valid Values: - * license-included | bring-your-own-license | - * general-public-license

    Default: Same as the source.

    + *

    The license model information for the restored DB instance.

    + *

    License models for RDS for Db2 require additional configuration. The Bring + * Your Own License (BYOL) model requires a custom parameter group. The Db2 license + * through Amazon Web Services Marketplace model requires an Amazon Web Services + * Marketplace subscription. For more information, see RDS + * for Db2 licensing options in the Amazon RDS User Guide.

    + *

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    + *

    Valid Values:

    • RDS for Db2 - bring-your-own-license | + * marketplace-license

    • RDS for MariaDB - + * general-public-license

    • RDS for Microsoft SQL + * Server - license-included

    • RDS for MySQL - + * general-public-license

    • RDS for Oracle - + * bring-your-own-license | license-included

    • RDS + * for PostgreSQL - postgresql-license

    Default: + * Same as the source.

    */ inline RestoreDBInstanceToPointInTimeRequest& WithLicenseModel(const char* value) { SetLicenseModel(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/ActivateGatewayRequest.h b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/ActivateGatewayRequest.h index 5ac583ba4d5..949e37190de 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/ActivateGatewayRequest.h +++ b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/ActivateGatewayRequest.h @@ -195,73 +195,81 @@ namespace Model /** *

    A value that indicates the time zone you want to set for the gateway. The - * time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00 - * indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours - * ahead of GMT. The time zone is used, for example, for scheduling snapshots and - * your gateway's maintenance schedule.

    + * time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT + * indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is + * 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The + * time zone is used, for example, for scheduling snapshots and your gateway's + * maintenance schedule.

    */ inline const Aws::String& GetGatewayTimezone() const{ return m_gatewayTimezone; } /** *

    A value that indicates the time zone you want to set for the gateway. The - * time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00 - * indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours - * ahead of GMT. The time zone is used, for example, for scheduling snapshots and - * your gateway's maintenance schedule.

    + * time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT + * indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is + * 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The + * time zone is used, for example, for scheduling snapshots and your gateway's + * maintenance schedule.

    */ inline bool GatewayTimezoneHasBeenSet() const { return m_gatewayTimezoneHasBeenSet; } /** *

    A value that indicates the time zone you want to set for the gateway. The - * time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00 - * indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours - * ahead of GMT. The time zone is used, for example, for scheduling snapshots and - * your gateway's maintenance schedule.

    + * time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT + * indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is + * 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The + * time zone is used, for example, for scheduling snapshots and your gateway's + * maintenance schedule.

    */ inline void SetGatewayTimezone(const Aws::String& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = value; } /** *

    A value that indicates the time zone you want to set for the gateway. The - * time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00 - * indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours - * ahead of GMT. The time zone is used, for example, for scheduling snapshots and - * your gateway's maintenance schedule.

    + * time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT + * indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is + * 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The + * time zone is used, for example, for scheduling snapshots and your gateway's + * maintenance schedule.

    */ inline void SetGatewayTimezone(Aws::String&& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = std::move(value); } /** *

    A value that indicates the time zone you want to set for the gateway. The - * time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00 - * indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours - * ahead of GMT. The time zone is used, for example, for scheduling snapshots and - * your gateway's maintenance schedule.

    + * time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT + * indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is + * 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The + * time zone is used, for example, for scheduling snapshots and your gateway's + * maintenance schedule.

    */ inline void SetGatewayTimezone(const char* value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone.assign(value); } /** *

    A value that indicates the time zone you want to set for the gateway. The - * time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00 - * indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours - * ahead of GMT. The time zone is used, for example, for scheduling snapshots and - * your gateway's maintenance schedule.

    + * time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT + * indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is + * 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The + * time zone is used, for example, for scheduling snapshots and your gateway's + * maintenance schedule.

    */ inline ActivateGatewayRequest& WithGatewayTimezone(const Aws::String& value) { SetGatewayTimezone(value); return *this;} /** *

    A value that indicates the time zone you want to set for the gateway. The - * time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00 - * indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours - * ahead of GMT. The time zone is used, for example, for scheduling snapshots and - * your gateway's maintenance schedule.

    + * time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT + * indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is + * 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The + * time zone is used, for example, for scheduling snapshots and your gateway's + * maintenance schedule.

    */ inline ActivateGatewayRequest& WithGatewayTimezone(Aws::String&& value) { SetGatewayTimezone(std::move(value)); return *this;} /** *

    A value that indicates the time zone you want to set for the gateway. The - * time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00 - * indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours - * ahead of GMT. The time zone is used, for example, for scheduling snapshots and - * your gateway's maintenance schedule.

    + * time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT + * indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is + * 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The + * time zone is used, for example, for scheduling snapshots and your gateway's + * maintenance schedule.

    */ inline ActivateGatewayRequest& WithGatewayTimezone(const char* value) { SetGatewayTimezone(value); return *this;} @@ -392,7 +400,7 @@ namespace Model * critical to all later functions of the gateway and cannot be changed after * activation. The default value is CACHED.

    Valid Values: * STORED | CACHED | VTL | - * VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    + * FILE_S3 | FILE_FSX_SMB

    */ inline const Aws::String& GetGatewayType() const{ return m_gatewayType; } @@ -401,7 +409,7 @@ namespace Model * critical to all later functions of the gateway and cannot be changed after * activation. The default value is CACHED.

    Valid Values: * STORED | CACHED | VTL | - * VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    + * FILE_S3 | FILE_FSX_SMB

    */ inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; } @@ -410,7 +418,7 @@ namespace Model * critical to all later functions of the gateway and cannot be changed after * activation. The default value is CACHED.

    Valid Values: * STORED | CACHED | VTL | - * VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    + * FILE_S3 | FILE_FSX_SMB

    */ inline void SetGatewayType(const Aws::String& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; } @@ -419,7 +427,7 @@ namespace Model * critical to all later functions of the gateway and cannot be changed after * activation. The default value is CACHED.

    Valid Values: * STORED | CACHED | VTL | - * VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    + * FILE_S3 | FILE_FSX_SMB

    */ inline void SetGatewayType(Aws::String&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::move(value); } @@ -428,7 +436,7 @@ namespace Model * critical to all later functions of the gateway and cannot be changed after * activation. The default value is CACHED.

    Valid Values: * STORED | CACHED | VTL | - * VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    + * FILE_S3 | FILE_FSX_SMB

    */ inline void SetGatewayType(const char* value) { m_gatewayTypeHasBeenSet = true; m_gatewayType.assign(value); } @@ -437,7 +445,7 @@ namespace Model * critical to all later functions of the gateway and cannot be changed after * activation. The default value is CACHED.

    Valid Values: * STORED | CACHED | VTL | - * VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    + * FILE_S3 | FILE_FSX_SMB

    */ inline ActivateGatewayRequest& WithGatewayType(const Aws::String& value) { SetGatewayType(value); return *this;} @@ -446,7 +454,7 @@ namespace Model * critical to all later functions of the gateway and cannot be changed after * activation. The default value is CACHED.

    Valid Values: * STORED | CACHED | VTL | - * VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    + * FILE_S3 | FILE_FSX_SMB

    */ inline ActivateGatewayRequest& WithGatewayType(Aws::String&& value) { SetGatewayType(std::move(value)); return *this;} @@ -455,7 +463,7 @@ namespace Model * critical to all later functions of the gateway and cannot be changed after * activation. The default value is CACHED.

    Valid Values: * STORED | CACHED | VTL | - * VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    + * FILE_S3 | FILE_FSX_SMB

    */ inline ActivateGatewayRequest& WithGatewayType(const char* value) { SetGatewayType(value); return *this;} diff --git a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/DescribeGatewayInformationResult.h b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/DescribeGatewayInformationResult.h index 0758d62e7d0..1ec9d10c712 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/DescribeGatewayInformationResult.h +++ b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/DescribeGatewayInformationResult.h @@ -639,31 +639,36 @@ namespace Model /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline const HostEnvironment& GetHostEnvironment() const{ return m_hostEnvironment; } /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline void SetHostEnvironment(const HostEnvironment& value) { m_hostEnvironment = value; } /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline void SetHostEnvironment(HostEnvironment&& value) { m_hostEnvironment = std::move(value); } /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline DescribeGatewayInformationResult& WithHostEnvironment(const HostEnvironment& value) { SetHostEnvironment(value); return *this;} /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline DescribeGatewayInformationResult& WithHostEnvironment(HostEnvironment&& value) { SetHostEnvironment(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/DescribeSMBSettingsResult.h b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/DescribeSMBSettingsResult.h index bc4c86e49a1..42e0c477005 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/DescribeSMBSettingsResult.h +++ b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/DescribeSMBSettingsResult.h @@ -206,86 +206,111 @@ namespace Model /** *

    The type of security strategy that was specified for file gateway.

      - *
    • ClientSpecified: If you use this option, requests are + *

    • ClientSpecified: If you choose this option, requests are * established based on what is negotiated by the client. This option is * recommended when you want to maximize compatibility across different clients in - * your environment. Only supported for S3 File Gateways.

    • - * MandatorySigning: If you use this option, file gateway only allows - * connections from SMBv2 or SMBv3 clients that have signing enabled. This option - * works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or - * newer.

    • MandatoryEncryption: If you use this - * option, file gateway only allows connections from SMBv3 clients that have - * encryption enabled. This option is highly recommended for environments that - * handle sensitive data. This option works with SMB clients on Microsoft Windows - * 8, Windows Server 2012 or newer.

    + * your environment. Supported only for S3 File Gateway.

  • + * MandatorySigning: If you use this option, File Gateway only allows + * connections from SMBv2 or SMBv3 clients that have signing turned on. This option + * works with SMB clients on Microsoft Windows Vista, Windows Server 2008, or + * later.

  • MandatoryEncryption: If you use this + * option, File Gateway only allows connections from SMBv3 clients that have + * encryption turned on. Both 256-bit and 128-bit algorithms are allowed. This + * option is recommended for environments that handle sensitive data. It works with + * SMB clients on Microsoft Windows 8, Windows Server 2012, or later.

  • + *
  • EnforceEncryption: If you use this option, File Gateway + * only allows connections from SMBv3 clients that use 256-bit AES encryption + * algorithms. 128-bit algorithms are not allowed. This option is recommended for + * environments that handle sensitive data. It works with SMB clients on Microsoft + * Windows 8, Windows Server 2012, or later.

  • */ inline const SMBSecurityStrategy& GetSMBSecurityStrategy() const{ return m_sMBSecurityStrategy; } /** *

    The type of security strategy that was specified for file gateway.

      - *
    • ClientSpecified: If you use this option, requests are + *

    • ClientSpecified: If you choose this option, requests are * established based on what is negotiated by the client. This option is * recommended when you want to maximize compatibility across different clients in - * your environment. Only supported for S3 File Gateways.

    • - * MandatorySigning: If you use this option, file gateway only allows - * connections from SMBv2 or SMBv3 clients that have signing enabled. This option - * works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or - * newer.

    • MandatoryEncryption: If you use this - * option, file gateway only allows connections from SMBv3 clients that have - * encryption enabled. This option is highly recommended for environments that - * handle sensitive data. This option works with SMB clients on Microsoft Windows - * 8, Windows Server 2012 or newer.

    + * your environment. Supported only for S3 File Gateway.

  • + * MandatorySigning: If you use this option, File Gateway only allows + * connections from SMBv2 or SMBv3 clients that have signing turned on. This option + * works with SMB clients on Microsoft Windows Vista, Windows Server 2008, or + * later.

  • MandatoryEncryption: If you use this + * option, File Gateway only allows connections from SMBv3 clients that have + * encryption turned on. Both 256-bit and 128-bit algorithms are allowed. This + * option is recommended for environments that handle sensitive data. It works with + * SMB clients on Microsoft Windows 8, Windows Server 2012, or later.

  • + *
  • EnforceEncryption: If you use this option, File Gateway + * only allows connections from SMBv3 clients that use 256-bit AES encryption + * algorithms. 128-bit algorithms are not allowed. This option is recommended for + * environments that handle sensitive data. It works with SMB clients on Microsoft + * Windows 8, Windows Server 2012, or later.

  • */ inline void SetSMBSecurityStrategy(const SMBSecurityStrategy& value) { m_sMBSecurityStrategy = value; } /** *

    The type of security strategy that was specified for file gateway.

      - *
    • ClientSpecified: If you use this option, requests are + *

    • ClientSpecified: If you choose this option, requests are * established based on what is negotiated by the client. This option is * recommended when you want to maximize compatibility across different clients in - * your environment. Only supported for S3 File Gateways.

    • - * MandatorySigning: If you use this option, file gateway only allows - * connections from SMBv2 or SMBv3 clients that have signing enabled. This option - * works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or - * newer.

    • MandatoryEncryption: If you use this - * option, file gateway only allows connections from SMBv3 clients that have - * encryption enabled. This option is highly recommended for environments that - * handle sensitive data. This option works with SMB clients on Microsoft Windows - * 8, Windows Server 2012 or newer.

    + * your environment. Supported only for S3 File Gateway.

  • + * MandatorySigning: If you use this option, File Gateway only allows + * connections from SMBv2 or SMBv3 clients that have signing turned on. This option + * works with SMB clients on Microsoft Windows Vista, Windows Server 2008, or + * later.

  • MandatoryEncryption: If you use this + * option, File Gateway only allows connections from SMBv3 clients that have + * encryption turned on. Both 256-bit and 128-bit algorithms are allowed. This + * option is recommended for environments that handle sensitive data. It works with + * SMB clients on Microsoft Windows 8, Windows Server 2012, or later.

  • + *
  • EnforceEncryption: If you use this option, File Gateway + * only allows connections from SMBv3 clients that use 256-bit AES encryption + * algorithms. 128-bit algorithms are not allowed. This option is recommended for + * environments that handle sensitive data. It works with SMB clients on Microsoft + * Windows 8, Windows Server 2012, or later.

  • */ inline void SetSMBSecurityStrategy(SMBSecurityStrategy&& value) { m_sMBSecurityStrategy = std::move(value); } /** *

    The type of security strategy that was specified for file gateway.

      - *
    • ClientSpecified: If you use this option, requests are + *

    • ClientSpecified: If you choose this option, requests are * established based on what is negotiated by the client. This option is * recommended when you want to maximize compatibility across different clients in - * your environment. Only supported for S3 File Gateways.

    • - * MandatorySigning: If you use this option, file gateway only allows - * connections from SMBv2 or SMBv3 clients that have signing enabled. This option - * works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or - * newer.

    • MandatoryEncryption: If you use this - * option, file gateway only allows connections from SMBv3 clients that have - * encryption enabled. This option is highly recommended for environments that - * handle sensitive data. This option works with SMB clients on Microsoft Windows - * 8, Windows Server 2012 or newer.

    + * your environment. Supported only for S3 File Gateway.

  • + * MandatorySigning: If you use this option, File Gateway only allows + * connections from SMBv2 or SMBv3 clients that have signing turned on. This option + * works with SMB clients on Microsoft Windows Vista, Windows Server 2008, or + * later.

  • MandatoryEncryption: If you use this + * option, File Gateway only allows connections from SMBv3 clients that have + * encryption turned on. Both 256-bit and 128-bit algorithms are allowed. This + * option is recommended for environments that handle sensitive data. It works with + * SMB clients on Microsoft Windows 8, Windows Server 2012, or later.

  • + *
  • EnforceEncryption: If you use this option, File Gateway + * only allows connections from SMBv3 clients that use 256-bit AES encryption + * algorithms. 128-bit algorithms are not allowed. This option is recommended for + * environments that handle sensitive data. It works with SMB clients on Microsoft + * Windows 8, Windows Server 2012, or later.

  • */ inline DescribeSMBSettingsResult& WithSMBSecurityStrategy(const SMBSecurityStrategy& value) { SetSMBSecurityStrategy(value); return *this;} /** *

    The type of security strategy that was specified for file gateway.

      - *
    • ClientSpecified: If you use this option, requests are + *

    • ClientSpecified: If you choose this option, requests are * established based on what is negotiated by the client. This option is * recommended when you want to maximize compatibility across different clients in - * your environment. Only supported for S3 File Gateways.

    • - * MandatorySigning: If you use this option, file gateway only allows - * connections from SMBv2 or SMBv3 clients that have signing enabled. This option - * works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or - * newer.

    • MandatoryEncryption: If you use this - * option, file gateway only allows connections from SMBv3 clients that have - * encryption enabled. This option is highly recommended for environments that - * handle sensitive data. This option works with SMB clients on Microsoft Windows - * 8, Windows Server 2012 or newer.

    + * your environment. Supported only for S3 File Gateway.

  • + * MandatorySigning: If you use this option, File Gateway only allows + * connections from SMBv2 or SMBv3 clients that have signing turned on. This option + * works with SMB clients on Microsoft Windows Vista, Windows Server 2008, or + * later.

  • MandatoryEncryption: If you use this + * option, File Gateway only allows connections from SMBv3 clients that have + * encryption turned on. Both 256-bit and 128-bit algorithms are allowed. This + * option is recommended for environments that handle sensitive data. It works with + * SMB clients on Microsoft Windows 8, Windows Server 2012, or later.

  • + *
  • EnforceEncryption: If you use this option, File Gateway + * only allows connections from SMBv3 clients that use 256-bit AES encryption + * algorithms. 128-bit algorithms are not allowed. This option is recommended for + * environments that handle sensitive data. It works with SMB clients on Microsoft + * Windows 8, Windows Server 2012, or later.

  • */ inline DescribeSMBSettingsResult& WithSMBSecurityStrategy(SMBSecurityStrategy&& value) { SetSMBSecurityStrategy(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/GatewayInfo.h b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/GatewayInfo.h index ed337add636..5150817ef10 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/GatewayInfo.h +++ b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/GatewayInfo.h @@ -367,37 +367,43 @@ namespace Model /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline const HostEnvironment& GetHostEnvironment() const{ return m_hostEnvironment; } /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline bool HostEnvironmentHasBeenSet() const { return m_hostEnvironmentHasBeenSet; } /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline void SetHostEnvironment(const HostEnvironment& value) { m_hostEnvironmentHasBeenSet = true; m_hostEnvironment = value; } /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline void SetHostEnvironment(HostEnvironment&& value) { m_hostEnvironmentHasBeenSet = true; m_hostEnvironment = std::move(value); } /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline GatewayInfo& WithHostEnvironment(const HostEnvironment& value) { SetHostEnvironment(value); return *this;} /** *

    The type of hardware or software platform on which the gateway is - * running.

    + * running.

    Tape Gateway is no longer available on Snow Family + * devices.

    */ inline GatewayInfo& WithHostEnvironment(HostEnvironment&& value) { SetHostEnvironment(std::move(value)); return *this;} diff --git a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/RefreshCacheRequest.h b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/RefreshCacheRequest.h index 07c775af04a..60beafeab2b 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/RefreshCacheRequest.h +++ b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/RefreshCacheRequest.h @@ -84,7 +84,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline const Aws::Vector& GetFolderList() const{ return m_folderList; } @@ -93,7 +95,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline bool FolderListHasBeenSet() const { return m_folderListHasBeenSet; } @@ -102,7 +106,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline void SetFolderList(const Aws::Vector& value) { m_folderListHasBeenSet = true; m_folderList = value; } @@ -111,7 +117,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline void SetFolderList(Aws::Vector&& value) { m_folderListHasBeenSet = true; m_folderList = std::move(value); } @@ -120,7 +128,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline RefreshCacheRequest& WithFolderList(const Aws::Vector& value) { SetFolderList(value); return *this;} @@ -129,7 +139,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline RefreshCacheRequest& WithFolderList(Aws::Vector&& value) { SetFolderList(std::move(value)); return *this;} @@ -138,7 +150,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline RefreshCacheRequest& AddFolderList(const Aws::String& value) { m_folderListHasBeenSet = true; m_folderList.push_back(value); return *this; } @@ -147,7 +161,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline RefreshCacheRequest& AddFolderList(Aws::String&& value) { m_folderListHasBeenSet = true; m_folderList.push_back(std::move(value)); return *this; } @@ -156,7 +172,9 @@ namespace Model * default is ["/"]. The default refreshes objects and folders at the * root of the Amazon S3 bucket. If Recursive is set to * true, the entire S3 bucket that the file share has access to is - * refreshed.

    + * refreshed.

    Do not include / when specifying folder names. + * For example, you would specify samplefolder rather than + * samplefolder/.

    */ inline RefreshCacheRequest& AddFolderList(const char* value) { m_folderListHasBeenSet = true; m_folderList.push_back(value); return *this; } diff --git a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/SMBSecurityStrategy.h b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/SMBSecurityStrategy.h index 2ec1fed996c..a50370e4b2f 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/SMBSecurityStrategy.h +++ b/generated/src/aws-cpp-sdk-storagegateway/include/aws/storagegateway/model/SMBSecurityStrategy.h @@ -18,7 +18,8 @@ namespace Model NOT_SET, ClientSpecified, MandatorySigning, - MandatoryEncryption + MandatoryEncryption, + MandatoryEncryptionNoAes128 }; namespace SMBSecurityStrategyMapper diff --git a/generated/src/aws-cpp-sdk-storagegateway/source/model/SMBSecurityStrategy.cpp b/generated/src/aws-cpp-sdk-storagegateway/source/model/SMBSecurityStrategy.cpp index fa71ac91cd9..5885c2a9185 100644 --- a/generated/src/aws-cpp-sdk-storagegateway/source/model/SMBSecurityStrategy.cpp +++ b/generated/src/aws-cpp-sdk-storagegateway/source/model/SMBSecurityStrategy.cpp @@ -23,6 +23,7 @@ namespace Aws static const int ClientSpecified_HASH = HashingUtils::HashString("ClientSpecified"); static const int MandatorySigning_HASH = HashingUtils::HashString("MandatorySigning"); static const int MandatoryEncryption_HASH = HashingUtils::HashString("MandatoryEncryption"); + static const int MandatoryEncryptionNoAes128_HASH = HashingUtils::HashString("MandatoryEncryptionNoAes128"); SMBSecurityStrategy GetSMBSecurityStrategyForName(const Aws::String& name) @@ -40,6 +41,10 @@ namespace Aws { return SMBSecurityStrategy::MandatoryEncryption; } + else if (hashCode == MandatoryEncryptionNoAes128_HASH) + { + return SMBSecurityStrategy::MandatoryEncryptionNoAes128; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +67,8 @@ namespace Aws return "MandatorySigning"; case SMBSecurityStrategy::MandatoryEncryption: return "MandatoryEncryption"; + case SMBSecurityStrategy::MandatoryEncryptionNoAes128: + return "MandatoryEncryptionNoAes128"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/tests/mailmanager-gen-tests/CMakeLists.txt b/generated/tests/mailmanager-gen-tests/CMakeLists.txt new file mode 100644 index 00000000000..909d0089f64 --- /dev/null +++ b/generated/tests/mailmanager-gen-tests/CMakeLists.txt @@ -0,0 +1,42 @@ +add_project(mailmanager-gen-tests + "Tests for the AWS MAILMANAGER C++ SDK" + testing-resources + aws-cpp-sdk-mailmanager + aws-cpp-sdk-core) + +file(GLOB AWS_MAILMANAGER_GENERATED_TEST_SRC + "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" +) + +if(MSVC AND BUILD_SHARED_LIBS) + add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) +endif() + +if (CMAKE_CROSSCOMPILING) + set(AUTORUN_UNIT_TESTS OFF) +endif() + +if (AUTORUN_UNIT_TESTS) + enable_testing() +endif() + +if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) + add_library(${PROJECT_NAME} "${AWS_MAILMANAGER_GENERATED_TEST_SRC}") +else() + add_executable(${PROJECT_NAME} "${AWS_MAILMANAGER_GENERATED_TEST_SRC}") +endif() + +set_compiler_flags(${PROJECT_NAME}) +set_compiler_warnings(${PROJECT_NAME}) + +target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS}) + +if (AUTORUN_UNIT_TESTS) + ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD + COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${AWS_AUTORUN_LD_LIBRARY_PATH}:$ENV{LD_LIBRARY_PATH} $ + ARGS "--gtest_brief=1") +endif() + +if(NOT CMAKE_CROSSCOMPILING) + SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) +endif() \ No newline at end of file diff --git a/generated/tests/mailmanager-gen-tests/MailManagerEndpointProviderTests.cpp b/generated/tests/mailmanager-gen-tests/MailManagerEndpointProviderTests.cpp new file mode 100644 index 00000000000..68de3dab662 --- /dev/null +++ b/generated/tests/mailmanager-gen-tests/MailManagerEndpointProviderTests.cpp @@ -0,0 +1,428 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + + +static const char* ALLOCATION_TAG = "AWSMailManagerEndpointProviderTests"; +using MailManagerEndpointProvider = Aws::MailManager::Endpoint::MailManagerEndpointProvider; +using EndpointParameters = Aws::Vector; +using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; + +using EpParam = Aws::Endpoint::EndpointParameter; +using EpProp = Aws::Endpoint::EndpointParameter; // just a container to store test expectations +using ExpEpProps = Aws::UnorderedMap>>; +using ExpEpAuthScheme = Aws::Vector; +using ExpEpHeaders = Aws::UnorderedMap>; + +struct MailManagerEndpointProviderEndpointTestCase +{ + using OperationParamsFromTest = EndpointParameters; + + struct Expect + { + struct Endpoint + { + Aws::String url; + ExpEpAuthScheme authScheme; + ExpEpProps properties; + ExpEpHeaders headers; + } endpoint; + Aws::String error; + }; + struct OperationInput + { + Aws::String operationName; + OperationParamsFromTest operationParams; + OperationParamsFromTest builtinParams; + OperationParamsFromTest clientParams; + }; + + Aws::String documentation; + // Specification tells us it is Client Initialization parameters + // At the same time, specification tells us to test EndpointProvider not the client itself + // Hence params here will be set as a client params (just like a dedicated field above). + Aws::Vector params; + Aws::Vector tags; + Expect expect; + // Aws::Vector operationInput; +}; + +class MailManagerEndpointProviderTests : public ::testing::TestWithParam +{ +public: + static const size_t TEST_CASES_SZ; +protected: + static Aws::Vector getTestCase(); + static Aws::UniquePtrSafeDeleted> TEST_CASES; + static void SetUpTestSuite() + { + TEST_CASES = Aws::MakeUniqueSafeDeleted>(ALLOCATION_TAG, getTestCase()); + ASSERT_TRUE(TEST_CASES) << "Failed to allocate TEST_CASES table"; + assert(TEST_CASES->size() == TEST_CASES_SZ); + } + + static void TearDownTestSuite() + { + TEST_CASES.reset(); + } +}; + +Aws::UniquePtrSafeDeleted> MailManagerEndpointProviderTests::TEST_CASES; +const size_t MailManagerEndpointProviderTests::TEST_CASES_SZ = 25; + +Aws::Vector MailManagerEndpointProviderTests::getTestCase() { + + Aws::Vector test_cases = { + /*TEST CASE 0*/ + {"For region us-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager-fips.us-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 1*/ + {"For region us-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager-fips.us-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 2*/ + {"For region us-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager.us-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 3*/ + {"For region us-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager.us-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 4*/ + {"For region cn-north-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager-fips.cn-north-1.api.amazonwebservices.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 5*/ + {"For region cn-north-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager-fips.cn-north-1.amazonaws.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 6*/ + {"For region cn-north-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager.cn-north-1.api.amazonwebservices.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 7*/ + {"For region cn-north-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager.cn-north-1.amazonaws.com.cn", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 8*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager-fips.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 9*/ + {"For region us-gov-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager-fips.us-gov-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 10*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager.us-gov-east-1.api.aws", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 11*/ + {"For region us-gov-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager.us-gov-east-1.amazonaws.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 12*/ + {"For region us-iso-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect + }, + /*TEST CASE 13*/ + {"For region us-iso-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager-fips.us-iso-east-1.c2s.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 14*/ + {"For region us-iso-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect + }, + /*TEST CASE 15*/ + {"For region us-iso-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager.us-iso-east-1.c2s.ic.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 16*/ + {"For region us-isob-east-1 with FIPS enabled and DualStack enabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect + }, + /*TEST CASE 17*/ + {"For region us-isob-east-1 with FIPS enabled and DualStack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager-fips.us-isob-east-1.sc2s.sgov.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 18*/ + {"For region us-isob-east-1 with FIPS disabled and DualStack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect + }, + /*TEST CASE 19*/ + {"For region us-isob-east-1 with FIPS disabled and DualStack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://mail-manager.us-isob-east-1.sc2s.sgov.gov", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 20*/ + {"For custom endpoint with region set and fips disabled and dualstack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://example.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 21*/ + {"For custom endpoint with region not set and fips disabled and dualstack disabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*epUrl*/"https://example.com", + {/*authScheme*/}, + {/*properties*/}, + {/*headers*/}}, {/*No error*/}} // expect + }, + /*TEST CASE 22*/ + {"For custom endpoint with fips enabled and dualstack disabled", // documentation + {EpParam("UseFIPS", true), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: FIPS and custom endpoint are not supported"} // expect + }, + /*TEST CASE 23*/ + {"For custom endpoint with fips disabled and dualstack enabled", // documentation + {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Dualstack and custom endpoint are not supported"} // expect + }, + /*TEST CASE 24*/ + {"Missing region", // documentation + {}, // params + {}, // tags + {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Missing Region"} // expect + } + }; + return test_cases; +} + +Aws::String RulesToSdkSignerName(const Aws::String& rulesSignerName) +{ + Aws::String sdkSigner = "NullSigner"; + if (rulesSignerName == "sigv4") { + sdkSigner = "SignatureV4"; + } else if (rulesSignerName == "sigv4a") { + sdkSigner = "AsymmetricSignatureV4"; + } else if (rulesSignerName == "none") { + sdkSigner = "NullSigner"; + } else if (rulesSignerName == "bearer") { + sdkSigner = "Bearer"; + } else if (rulesSignerName == "s3Express") { + sdkSigner = "S3ExpressSigner"; + } else { + sdkSigner = rulesSignerName; + } + + return sdkSigner; +} + +void ValidateOutcome(const ResolveEndpointOutcome& outcome, const MailManagerEndpointProviderEndpointTestCase::Expect& expect) +{ + if(!expect.error.empty()) + { + ASSERT_FALSE(outcome.IsSuccess()) << "Expected failure with message:\n" << expect.error; + ASSERT_EQ(outcome.GetError().GetMessage(), expect.error); + } + else + { + AWS_ASSERT_SUCCESS(outcome); + ASSERT_EQ(outcome.GetResult().GetURL(), expect.endpoint.url); + const auto expAuthSchemesIt = expect.endpoint.properties.find("authSchemes"); + if (expAuthSchemesIt != expect.endpoint.properties.end()) + { + // in the list of AuthSchemes, select the one with a highest priority + const Aws::Vector priotityList = {"s3Express", "sigv4a", "sigv4", "bearer", "none", ""}; + const auto expectedAuthSchemePropsIt = std::find_first_of(expAuthSchemesIt->second.begin(), expAuthSchemesIt->second.end(), + priotityList.begin(), priotityList.end(), [](const Aws::Vector& props, const Aws::String& expName) + { + const auto& propNameIt = std::find_if(props.begin(), props.end(), [](const EpProp& prop) + { + return prop.GetName() == "name"; + }); + assert(propNameIt != props.end()); + return propNameIt->GetStrValueNoCheck() == expName; + }); + assert(expectedAuthSchemePropsIt != expAuthSchemesIt->second.end()); + + const auto& endpointResultAttrs = outcome.GetResult().GetAttributes(); + ASSERT_TRUE(endpointResultAttrs) << "Expected non-empty EndpointAttributes (authSchemes)"; + for (const auto& expProperty : *expectedAuthSchemePropsIt) + { + if (expProperty.GetName() == "name") { + ASSERT_TRUE(!endpointResultAttrs->authScheme.GetName().empty()); + ASSERT_EQ(RulesToSdkSignerName(expProperty.GetStrValueNoCheck()), endpointResultAttrs->authScheme.GetName()); + } else if (expProperty.GetName() == "signingName") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningName()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningName().value()); + } else if (expProperty.GetName() == "signingRegion") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegion()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegion().value()); + } else if (expProperty.GetName() == "signingRegionSet") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegionSet()); + ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegionSet().value()); + } else if (expProperty.GetName() == "disableDoubleEncoding") { + ASSERT_TRUE(endpointResultAttrs->authScheme.GetDisableDoubleEncoding()); + ASSERT_EQ(expProperty.GetBoolValueNoCheck(), endpointResultAttrs->authScheme.GetDisableDoubleEncoding().value()); + } else { + FAIL() << "Unsupported Auth type property " << expProperty.GetName() << ". Need to update test."; + } + } + } + + EXPECT_EQ(expect.endpoint.headers.empty(), outcome.GetResult().GetHeaders().empty()); + for(const auto& expHeaderVec : expect.endpoint.headers) + { + const auto& retHeaderIt = outcome.GetResult().GetHeaders().find(expHeaderVec.first); + ASSERT_TRUE(retHeaderIt != outcome.GetResult().GetHeaders().end()); + + auto retHeaderVec = Aws::Utils::StringUtils::Split(retHeaderIt->second, ';'); + std::sort(retHeaderVec.begin(), retHeaderVec.end()); + + auto expHeaderVecSorted = expHeaderVec.second; + std::sort(expHeaderVecSorted.begin(), expHeaderVecSorted.end()); + + ASSERT_EQ(expHeaderVecSorted, retHeaderVec); + } + } +} + +TEST_P(MailManagerEndpointProviderTests, EndpointProviderTest) +{ + const size_t TEST_CASE_IDX = GetParam(); + ASSERT_LT(TEST_CASE_IDX, TEST_CASES->size()) << "Something is wrong with the test fixture itself."; + const MailManagerEndpointProviderEndpointTestCase& TEST_CASE = TEST_CASES->at(TEST_CASE_IDX); + SCOPED_TRACE(Aws::String("\nTEST CASE # ") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX) + ": " + TEST_CASE.documentation); + SCOPED_TRACE(Aws::String("\n--gtest_filter=EndpointTestsFromModel/MailManagerEndpointProviderTests.EndpointProviderTest/") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX)); + + std::shared_ptr endpointProvider = Aws::MakeShared(ALLOCATION_TAG); + ASSERT_TRUE(endpointProvider) << "Failed to allocate/initialize MailManagerEndpointProvider"; + + EndpointParameters endpointParameters; + for(const auto& param : TEST_CASE.params) + { + endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); + } + auto resolvedEndpointOutcome = endpointProvider->ResolveEndpoint(endpointParameters); + ValidateOutcome(resolvedEndpointOutcome, TEST_CASE.expect); + +#if 0 // temporarily disabled + for(const auto& operation : TEST_CASE.operationInput) + { + /* + * Most specific to least specific value locations: + staticContextParams + contextParam + clientContextParams + Built-In Bindings + Built-in binding default values + */ + const Aws::Vector> + operationInputParams = {std::cref(operation.builtinParams), std::cref(operation.clientParams), std::cref(operation.operationParams)}; + + for(const auto& paramSource : operationInputParams) + { + for(const auto& param : paramSource.get()) + { + endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); + } + } + auto resolvedEndpointOutcomePerOperation = endpointProvider->ResolveEndpoint(endpointParameters); + ValidateOutcome(resolvedEndpointOutcomePerOperation, TEST_CASE.expect); + } +#endif +} + +INSTANTIATE_TEST_SUITE_P(EndpointTestsFromModel, + MailManagerEndpointProviderTests, + ::testing::Range((size_t) 0u, MailManagerEndpointProviderTests::TEST_CASES_SZ)); diff --git a/generated/tests/mailmanager-gen-tests/RunTests.cpp b/generated/tests/mailmanager-gen-tests/RunTests.cpp new file mode 100644 index 00000000000..f2f10a7c789 --- /dev/null +++ b/generated/tests/mailmanager-gen-tests/RunTests.cpp @@ -0,0 +1,29 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include + +int main(int argc, char** argv) +{ + Aws::SDKOptions options; + options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace; + + AWS_BEGIN_MEMORY_TEST_EX(options, 1024, 128); + Aws::Testing::InitPlatformTest(options); + Aws::Testing::ParseArgs(argc, argv); + + Aws::InitAPI(options); + ::testing::InitGoogleTest(&argc, argv); + int exitCode = RUN_ALL_TESTS(); + Aws::ShutdownAPI(options); + + AWS_END_MEMORY_TEST_EX; + Aws::Testing::ShutdownPlatformTest(options); + return exitCode; +} diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 89024f50c1d..47f02d741e9 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -4,7 +4,7 @@ */ #pragma once -#define AWS_SDK_VERSION_STRING "1.11.332" +#define AWS_SDK_VERSION_STRING "1.11.333" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 332 +#define AWS_SDK_VERSION_PATCH 333 diff --git a/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json b/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json index 7192db90292..1d2b81fd9ac 100644 --- a/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json +++ b/tools/code-generation/api-descriptions/cloudfront-2020-05-31.normal.json @@ -5,6 +5,7 @@ "endpointPrefix":"cloudfront", "globalEndpoint":"cloudfront.amazonaws.com", "protocol":"rest-xml", + "protocols":["rest-xml"], "serviceAbbreviation":"CloudFront", "serviceFullName":"Amazon CloudFront", "serviceId":"CloudFront", diff --git a/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json b/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json index c84b8981942..1ddaa176654 100644 --- a/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json +++ b/tools/code-generation/api-descriptions/glue-2017-03-31.normal.json @@ -5,6 +5,7 @@ "endpointPrefix":"glue", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceFullName":"AWS Glue", "serviceId":"Glue", "signatureVersion":"v4", @@ -7446,6 +7447,10 @@ "SourceControlDetails":{ "shape":"SourceControlDetails", "documentation":"

    The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.

    " + }, + "MaintenanceWindow":{ + "shape":"MaintenanceWindow", + "documentation":"

    This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

    Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

    " } } }, @@ -14070,6 +14075,10 @@ "SourceControlDetails":{ "shape":"SourceControlDetails", "documentation":"

    The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.

    " + }, + "MaintenanceWindow":{ + "shape":"MaintenanceWindow", + "documentation":"

    This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

    Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

    " } }, "documentation":"

    Specifies a job definition.

    " @@ -14233,7 +14242,7 @@ }, "Timeout":{ "shape":"Timeout", - "documentation":"

    The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

    Streaming jobs do not have a timeout. The default for non-streaming jobs is 2,880 minutes (48 hours).

    " + "documentation":"

    The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

    The maximum value for timeout for batch jobs is 7 days or 10080 minutes. The default is 2880 minutes (48 hours) for batch jobs.

    Any existing Glue jobs that have a greater timeout value are defaulted to 7 days. For instance you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

    Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.

    " }, "MaxCapacity":{ "shape":"NullableDouble", @@ -14265,11 +14274,15 @@ }, "DPUSeconds":{ "shape":"NullableDouble", - "documentation":"

    This field populates only for Auto Scaling job runs, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

    " + "documentation":"

    This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

    " }, "ExecutionClass":{ "shape":"ExecutionClass", "documentation":"

    Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

    The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

    Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

    " + }, + "MaintenanceWindow":{ + "shape":"MaintenanceWindow", + "documentation":"

    This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

    Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

    " } }, "documentation":"

    Contains information about a job run.

    " @@ -14289,7 +14302,8 @@ "FAILED", "TIMEOUT", "ERROR", - "WAITING" + "WAITING", + "EXPIRED" ] }, "JobUpdate":{ @@ -14376,6 +14390,10 @@ "SourceControlDetails":{ "shape":"SourceControlDetails", "documentation":"

    The details for a source control configuration for a job, allowing synchronization of job artifacts to or from a remote repository.

    " + }, + "MaintenanceWindow":{ + "shape":"MaintenanceWindow", + "documentation":"

    This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

    Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

    " } }, "documentation":"

    Specifies information used to update an existing job definition. The previous job definition is completely overwritten by this information.

    " @@ -15650,6 +15668,10 @@ "SSE-KMS" ] }, + "MaintenanceWindow":{ + "type":"string", + "pattern":"^(Sun|Mon|Tue|Wed|Thu|Fri|Sat):([01]?[0-9]|2[0-3])$" + }, "ManyInputs":{ "type":"list", "member":{"shape":"NodeId"}, diff --git a/tools/code-generation/api-descriptions/lightsail-2016-11-28.normal.json b/tools/code-generation/api-descriptions/lightsail-2016-11-28.normal.json index cb178ff9528..10653817bf8 100644 --- a/tools/code-generation/api-descriptions/lightsail-2016-11-28.normal.json +++ b/tools/code-generation/api-descriptions/lightsail-2016-11-28.normal.json @@ -5,6 +5,7 @@ "endpointPrefix":"lightsail", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceFullName":"Amazon Lightsail", "serviceId":"Lightsail", "signatureVersion":"v4", @@ -3558,7 +3559,7 @@ "members":{ "blueprintId":{ "shape":"NonEmptyString", - "documentation":"

    The ID for the virtual private server image (app_wordpress_4_4 or app_lamp_7_0).

    " + "documentation":"

    The ID for the virtual private server image (app_wordpress_x_x or app_lamp_x_x).

    " }, "name":{ "shape":"ResourceName", @@ -3799,11 +3800,11 @@ }, "bundleId":{ "shape":"NonEmptyString", - "documentation":"

    The bundle ID (micro_1_0).

    " + "documentation":"

    The bundle ID (micro_x_x).

    " }, "instanceType":{ "shape":"string", - "documentation":"

    The Amazon EC2 instance type (t2.micro).

    " + "documentation":"

    The instance type (micro).

    " }, "isActive":{ "shape":"boolean", @@ -5317,7 +5318,7 @@ }, "bundleId":{ "shape":"NonEmptyString", - "documentation":"

    The bundle of specification information for your virtual private server (or instance), including the pricing plan (micro_1_0).

    " + "documentation":"

    The bundle of specification information for your virtual private server (or instance), including the pricing plan (micro_x_x).

    " }, "userData":{ "shape":"string", @@ -5337,7 +5338,7 @@ }, "ipAddressType":{ "shape":"IpAddressType", - "documentation":"

    The IP address type for the instance.

    The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    " + "documentation":"

    The IP address type for the instance.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    " }, "sourceInstanceName":{ "shape":"string", @@ -5386,11 +5387,11 @@ }, "blueprintId":{ "shape":"NonEmptyString", - "documentation":"

    The ID for a virtual private server image (app_wordpress_4_4 or app_lamp_7_0). Use the get blueprints operation to return a list of available images (or blueprints).

    Use active blueprints when creating new instances. Inactive blueprints are listed to support customers with existing instances and are not necessarily available to create new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.

    " + "documentation":"

    The ID for a virtual private server image (app_wordpress_x_x or app_lamp_x_x). Use the get blueprints operation to return a list of available images (or blueprints).

    Use active blueprints when creating new instances. Inactive blueprints are listed to support customers with existing instances and are not necessarily available to create new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.

    " }, "bundleId":{ "shape":"NonEmptyString", - "documentation":"

    The bundle of specification information for your virtual private server (or instance), including the pricing plan (micro_1_0).

    " + "documentation":"

    The bundle of specification information for your virtual private server (or instance), including the pricing plan (medium_x_x).

    " }, "userData":{ "shape":"string", @@ -5410,7 +5411,7 @@ }, "ipAddressType":{ "shape":"IpAddressType", - "documentation":"

    The IP address type for the instance.

    The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    " + "documentation":"

    The IP address type for the instance.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    " } } }, @@ -5495,7 +5496,7 @@ }, "ipAddressType":{ "shape":"IpAddressType", - "documentation":"

    The IP address type for the load balancer.

    The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    " + "documentation":"

    The IP address type for the load balancer.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    " }, "tlsPolicyName":{ "shape":"string", @@ -8761,7 +8762,7 @@ "members":{ "name":{ "shape":"ResourceName", - "documentation":"

    The name the user gave the instance (Amazon_Linux-1GB-Ohio-1).

    " + "documentation":"

    The name the user gave the instance (Amazon_Linux_2023-1).

    " }, "arn":{ "shape":"NonEmptyString", @@ -8789,15 +8790,15 @@ }, "blueprintId":{ "shape":"NonEmptyString", - "documentation":"

    The blueprint ID (os_amlinux_2016_03).

    " + "documentation":"

    The blueprint ID (amazon_linux_2023).

    " }, "blueprintName":{ "shape":"NonEmptyString", - "documentation":"

    The friendly name of the blueprint (Amazon Linux).

    " + "documentation":"

    The friendly name of the blueprint (Amazon Linux 2023).

    " }, "bundleId":{ "shape":"NonEmptyString", - "documentation":"

    The bundle for the instance (micro_1_0).

    " + "documentation":"

    The bundle for the instance (micro_x_x).

    " }, "addOns":{ "shape":"AddOnList", @@ -8821,7 +8822,7 @@ }, "ipAddressType":{ "shape":"IpAddressType", - "documentation":"

    The IP address type of the instance.

    The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

    " + "documentation":"

    The IP address type of the instance.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    " }, "hardware":{ "shape":"InstanceHardware", @@ -9099,7 +9100,7 @@ }, "protocol":{ "shape":"NetworkProtocol", - "documentation":"

    The IP protocol name.

    The name can be one of the following:

    • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

    • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

    • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

    • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    " + "documentation":"

    The IP protocol name.

    The name can be one of the following:

    • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

    • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

    • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

    • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    • icmp6 - Internet Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    " }, "accessFrom":{ "shape":"string", @@ -9149,7 +9150,7 @@ }, "protocol":{ "shape":"NetworkProtocol", - "documentation":"

    The IP protocol name.

    The name can be one of the following:

    • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

    • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

    • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

    • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    " + "documentation":"

    The IP protocol name.

    The name can be one of the following:

    • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

    • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

    • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

    • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    • icmp6 - Internet Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    " }, "state":{ "shape":"PortState", @@ -9227,11 +9228,11 @@ }, "fromBlueprintId":{ "shape":"string", - "documentation":"

    The blueprint ID from which you created the snapshot (os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.

    " + "documentation":"

    The blueprint ID from which you created the snapshot (amazon_linux_2023). A blueprint is a virtual private server (or instance) image used to create instances quickly.

    " }, "fromBundleId":{ "shape":"string", - "documentation":"

    The bundle ID from which you created the snapshot (micro_1_0).

    " + "documentation":"

    The bundle ID from which you created the snapshot (micro_x_x).

    " }, "isFromAutoSnapshot":{ "shape":"boolean", @@ -9249,11 +9250,11 @@ "members":{ "fromBundleId":{ "shape":"NonEmptyString", - "documentation":"

    The bundle ID from which the source instance was created (micro_1_0).

    " + "documentation":"

    The bundle ID from which the source instance was created (micro_x_x).

    " }, "fromBlueprintId":{ "shape":"NonEmptyString", - "documentation":"

    The blueprint ID from which the source instance (os_debian_8_3).

    " + "documentation":"

    The blueprint ID from which the source instance (amazon_linux_2023).

    " }, "fromDiskInfo":{ "shape":"DiskInfoList", @@ -9307,7 +9308,8 @@ "type":"string", "enum":[ "dualstack", - "ipv4" + "ipv4", + "ipv6" ] }, "Ipv6Address":{ @@ -9536,7 +9538,7 @@ }, "ipAddressType":{ "shape":"IpAddressType", - "documentation":"

    The IP address type of the load balancer.

    The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

    " + "documentation":"

    The IP address type of the load balancer.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    " }, "httpsRedirectionEnabled":{ "shape":"boolean", @@ -10097,7 +10099,8 @@ "tcp", "all", "udp", - "icmp" + "icmp", + "icmpv6" ] }, "NonEmptyString":{ @@ -10443,7 +10446,7 @@ }, "protocol":{ "shape":"NetworkProtocol", - "documentation":"

    The IP protocol name.

    The name can be one of the following:

    • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

    • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

    • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

    • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    " + "documentation":"

    The IP protocol name.

    The name can be one of the following:

    • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

    • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

    • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

    • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    • icmp6 - Internet Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

    " }, "cidrs":{ "shape":"StringList", @@ -11460,7 +11463,11 @@ }, "ipAddressType":{ "shape":"IpAddressType", - "documentation":"

    The IP address type to set for the specified resource.

    The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

    " + "documentation":"

    The IP address type to set for the specified resource.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    " + }, + "acceptBundleUpdate":{ + "shape":"boolean", + "documentation":"

    Required parameter to accept the instance bundle update when changing to, and from, IPv6-only.

    An instance bundle will change when switching from dual-stack or ipv4, to ipv6. It also changes when switching from ipv6, to dual-stack or ipv4.

    You must include this parameter in the command to update the bundle. For example, if you switch from dual-stack to ipv6, the bundle will be updated, and billing for the IPv6-only instance bundle begins immediately.

    " } } }, diff --git a/tools/code-generation/api-descriptions/mailmanager-2023-10-17.normal.json b/tools/code-generation/api-descriptions/mailmanager-2023-10-17.normal.json new file mode 100644 index 00000000000..1991fd06c29 --- /dev/null +++ b/tools/code-generation/api-descriptions/mailmanager-2023-10-17.normal.json @@ -0,0 +1,4056 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2023-10-17", + "endpointPrefix":"mail-manager", + "jsonVersion":"1.0", + "protocol":"json", + "protocols":["json"], + "serviceFullName":"MailManager", + "serviceId":"MailManager", + "signatureVersion":"v4", + "signingName":"ses", + "targetPrefix":"MailManagerSvc", + "uid":"mailmanager-2023-10-17" + }, + "operations":{ + "CreateAddonInstance":{ + "name":"CreateAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAddonInstanceRequest"}, + "output":{"shape":"CreateAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Creates an Add On instance for the subscription indicated in the request. The resulting Amazon Resource Name (ARN) can be used in a conditional statement for a rule set or traffic policy.

    ", + "idempotent":true + }, + "CreateAddonSubscription":{ + "name":"CreateAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAddonSubscriptionRequest"}, + "output":{"shape":"CreateAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Creates a subscription for an Add On representing the acceptance of its terms of use and additional pricing. The subscription can then be used to create an instance for use in rule sets or traffic policies.

    ", + "idempotent":true + }, + "CreateArchive":{ + "name":"CreateArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateArchiveRequest"}, + "output":{"shape":"CreateArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates a new email archive resource for storing and retaining emails.

    ", + "idempotent":true + }, + "CreateIngressPoint":{ + "name":"CreateIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateIngressPointRequest"}, + "output":{"shape":"CreateIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Provision a new ingress endpoint resource.

    ", + "idempotent":true + }, + "CreateRelay":{ + "name":"CreateRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRelayRequest"}, + "output":{"shape":"CreateRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Creates a relay resource which can be used in rules to relay incoming emails to defined relay destinations.

    ", + "idempotent":true + }, + "CreateRuleSet":{ + "name":"CreateRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRuleSetRequest"}, + "output":{"shape":"CreateRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Provision a new rule set.

    ", + "idempotent":true + }, + "CreateTrafficPolicy":{ + "name":"CreateTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTrafficPolicyRequest"}, + "output":{"shape":"CreateTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Provision a new traffic policy resource.

    ", + "idempotent":true + }, + "DeleteAddonInstance":{ + "name":"DeleteAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAddonInstanceRequest"}, + "output":{"shape":"DeleteAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Deletes an Add On instance.

    ", + "idempotent":true + }, + "DeleteAddonSubscription":{ + "name":"DeleteAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAddonSubscriptionRequest"}, + "output":{"shape":"DeleteAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Deletes an Add On subscription.

    ", + "idempotent":true + }, + "DeleteArchive":{ + "name":"DeleteArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteArchiveRequest"}, + "output":{"shape":"DeleteArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Initiates deletion of an email archive. This changes the archive state to pending deletion. In this state, no new emails can be added, and existing archived emails become inaccessible (search, export, download). The archive and all of its contents will be permanently deleted 30 days after entering the pending deletion state, regardless of the configured retention period.

    ", + "idempotent":true + }, + "DeleteIngressPoint":{ + "name":"DeleteIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteIngressPointRequest"}, + "output":{"shape":"DeleteIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Delete an ingress endpoint resource.

    ", + "idempotent":true + }, + "DeleteRelay":{ + "name":"DeleteRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRelayRequest"}, + "output":{"shape":"DeleteRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Deletes an existing relay resource.

    ", + "idempotent":true + }, + "DeleteRuleSet":{ + "name":"DeleteRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRuleSetRequest"}, + "output":{"shape":"DeleteRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "documentation":"

    Delete a rule set.

    ", + "idempotent":true + }, + "DeleteTrafficPolicy":{ + "name":"DeleteTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTrafficPolicyRequest"}, + "output":{"shape":"DeleteTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Delete a traffic policy resource.

    ", + "idempotent":true + }, + "GetAddonInstance":{ + "name":"GetAddonInstance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAddonInstanceRequest"}, + "output":{"shape":"GetAddonInstanceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Gets detailed information about an Add On instance.

    " + }, + "GetAddonSubscription":{ + "name":"GetAddonSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAddonSubscriptionRequest"}, + "output":{"shape":"GetAddonSubscriptionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Gets detailed information about an Add On subscription.

    " + }, + "GetArchive":{ + "name":"GetArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveRequest"}, + "output":{"shape":"GetArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Retrieves the full details and current state of a specified email archive.

    " + }, + "GetArchiveExport":{ + "name":"GetArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveExportRequest"}, + "output":{"shape":"GetArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Retrieves the details and current status of a specific email archive export job.

    " + }, + "GetArchiveMessage":{ + "name":"GetArchiveMessage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveMessageRequest"}, + "output":{"shape":"GetArchiveMessageResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Returns a pre-signed URL that provides temporary download access to the specific email message stored in the archive.

    " + }, + "GetArchiveMessageContent":{ + "name":"GetArchiveMessageContent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveMessageContentRequest"}, + "output":{"shape":"GetArchiveMessageContentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Returns the textual content of a specific email message stored in the archive. Attachments are not included.

    " + }, + "GetArchiveSearch":{ + "name":"GetArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveSearchRequest"}, + "output":{"shape":"GetArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Retrieves the details and current status of a specific email archive search job.

    " + }, + "GetArchiveSearchResults":{ + "name":"GetArchiveSearchResults", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetArchiveSearchResultsRequest"}, + "output":{"shape":"GetArchiveSearchResultsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Returns the results of a completed email archive search job.

    " + }, + "GetIngressPoint":{ + "name":"GetIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetIngressPointRequest"}, + "output":{"shape":"GetIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Fetch ingress endpoint resource attributes.

    " + }, + "GetRelay":{ + "name":"GetRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRelayRequest"}, + "output":{"shape":"GetRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Fetch the relay resource and it's attributes.

    " + }, + "GetRuleSet":{ + "name":"GetRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRuleSetRequest"}, + "output":{"shape":"GetRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Fetch attributes of a rule set.

    " + }, + "GetTrafficPolicy":{ + "name":"GetTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTrafficPolicyRequest"}, + "output":{"shape":"GetTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Fetch attributes of a traffic policy resource.

    " + }, + "ListAddonInstances":{ + "name":"ListAddonInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAddonInstancesRequest"}, + "output":{"shape":"ListAddonInstancesResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

    Lists all Add On instances in your account.

    " + }, + "ListAddonSubscriptions":{ + "name":"ListAddonSubscriptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAddonSubscriptionsRequest"}, + "output":{"shape":"ListAddonSubscriptionsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

    Lists all Add On subscriptions in your account.

    " + }, + "ListArchiveExports":{ + "name":"ListArchiveExports", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchiveExportsRequest"}, + "output":{"shape":"ListArchiveExportsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Returns a list of email archive export jobs.

    " + }, + "ListArchiveSearches":{ + "name":"ListArchiveSearches", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchiveSearchesRequest"}, + "output":{"shape":"ListArchiveSearchesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Returns a list of email archive search jobs.

    " + }, + "ListArchives":{ + "name":"ListArchives", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListArchivesRequest"}, + "output":{"shape":"ListArchivesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Returns a list of all email archives in your account.

    " + }, + "ListIngressPoints":{ + "name":"ListIngressPoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListIngressPointsRequest"}, + "output":{"shape":"ListIngressPointsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

    List all ingress endpoint resources.

    " + }, + "ListRelays":{ + "name":"ListRelays", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRelaysRequest"}, + "output":{"shape":"ListRelaysResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

    Lists all the existing relay resources.

    " + }, + "ListRuleSets":{ + "name":"ListRuleSets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRuleSetsRequest"}, + "output":{"shape":"ListRuleSetsResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

    List rule sets for this account.

    " + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Retrieves the list of tags (keys and values) assigned to the resource.

    " + }, + "ListTrafficPolicies":{ + "name":"ListTrafficPolicies", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTrafficPoliciesRequest"}, + "output":{"shape":"ListTrafficPoliciesResponse"}, + "errors":[ + {"shape":"ValidationException"} + ], + "documentation":"

    List traffic policy resources.

    " + }, + "StartArchiveExport":{ + "name":"StartArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartArchiveExportRequest"}, + "output":{"shape":"StartArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Initiates an export of emails from the specified archive.

    " + }, + "StartArchiveSearch":{ + "name":"StartArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartArchiveSearchRequest"}, + "output":{"shape":"StartArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Initiates a search across emails in the specified archive.

    " + }, + "StopArchiveExport":{ + "name":"StopArchiveExport", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopArchiveExportRequest"}, + "output":{"shape":"StopArchiveExportResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Stops an in-progress export of emails from an archive.

    " + }, + "StopArchiveSearch":{ + "name":"StopArchiveSearch", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopArchiveSearchRequest"}, + "output":{"shape":"StopArchiveSearchResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Stops an in-progress archive search job.

    ", + "idempotent":true + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Adds one or more tags (keys and values) to a specified resource.

    ", + "idempotent":true + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Remove one or more tags (keys and values) from a specified resource.

    ", + "idempotent":true + }, + "UpdateArchive":{ + "name":"UpdateArchive", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateArchiveRequest"}, + "output":{"shape":"UpdateArchiveResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates the attributes of an existing email archive.

    ", + "idempotent":true + }, + "UpdateIngressPoint":{ + "name":"UpdateIngressPoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateIngressPointRequest"}, + "output":{"shape":"UpdateIngressPointResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Update attributes of a provisioned ingress endpoint resource.

    ", + "idempotent":true + }, + "UpdateRelay":{ + "name":"UpdateRelay", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRelayRequest"}, + "output":{"shape":"UpdateRelayResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Updates the attributes of an existing relay resource.

    ", + "idempotent":true + }, + "UpdateRuleSet":{ + "name":"UpdateRuleSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRuleSetRequest"}, + "output":{"shape":"UpdateRuleSetResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    >Update attributes of an already provisioned rule set.

    ", + "idempotent":true + }, + "UpdateTrafficPolicy":{ + "name":"UpdateTrafficPolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTrafficPolicyRequest"}, + "output":{"shape":"UpdateTrafficPolicyResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Update attributes of an already provisioned traffic policy resource.

    ", + "idempotent":true + } + }, + "shapes":{ + "AcceptAction":{ + "type":"string", + "enum":[ + "ALLOW", + "DENY" + ] + }, + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

    Occurs when a user is denied access to a specific resource or action.

    ", + "exception":true + }, + "ActionFailurePolicy":{ + "type":"string", + "enum":[ + "CONTINUE", + "DROP" + ] + }, + "AddHeaderAction":{ + "type":"structure", + "required":[ + "HeaderName", + "HeaderValue" + ], + "members":{ + "HeaderName":{ + "shape":"HeaderName", + "documentation":"

    The name of the header to add to an email. The header must be prefixed with \"X-\". Headers are added regardless of whether the header name pre-existed in the email.

    " + }, + "HeaderValue":{ + "shape":"HeaderValue", + "documentation":"

    The value of the header to add to the email.

    " + } + }, + "documentation":"

    The action to add a header to a message. When executed, this action will add the given header to the message.

    " + }, + "AddonInstance":{ + "type":"structure", + "members":{ + "AddonInstanceArn":{ + "shape":"AddonInstanceArn", + "documentation":"

    The Amazon Resource Name (ARN) of the Add On instance.

    " + }, + "AddonInstanceId":{ + "shape":"AddonInstanceId", + "documentation":"

    The unique ID of the Add On instance.

    " + }, + "AddonName":{ + "shape":"AddonName", + "documentation":"

    The name of the Add On for the instance.

    " + }, + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

    The subscription ID for the instance.

    " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the Add On instance was created.

    " + } + }, + "documentation":"

    An Add On instance represents a specific configuration of an Add On.

    " + }, + "AddonInstanceArn":{"type":"string"}, + "AddonInstanceId":{ + "type":"string", + "max":67, + "min":4, + "pattern":"^ai-[a-zA-Z0-9]{1,64}$" + }, + "AddonInstances":{ + "type":"list", + "member":{"shape":"AddonInstance"} + }, + "AddonName":{"type":"string"}, + "AddonSubscription":{ + "type":"structure", + "members":{ + "AddonName":{ + "shape":"AddonName", + "documentation":"

    The name of the Add On.

    " + }, + "AddonSubscriptionArn":{ + "shape":"AddonSubscriptionArn", + "documentation":"

    The Amazon Resource Name (ARN) of the Add On subscription.

    " + }, + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

    The unique ID of the Add On subscription.

    " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the Add On subscription was created.

    " + } + }, + "documentation":"

    A subscription for an Add On representing the acceptance of its terms of use and additional pricing.

    " + }, + "AddonSubscriptionArn":{"type":"string"}, + "AddonSubscriptionId":{ + "type":"string", + "max":67, + "min":4, + "pattern":"^as-[a-zA-Z0-9]{1,64}$" + }, + "AddonSubscriptions":{ + "type":"list", + "member":{"shape":"AddonSubscription"} + }, + "Analysis":{ + "type":"structure", + "required":[ + "Analyzer", + "ResultField" + ], + "members":{ + "Analyzer":{ + "shape":"AnalyzerArn", + "documentation":"

    The Amazon Resource Name (ARN) of an Add On.

    " + }, + "ResultField":{ + "shape":"ResultField", + "documentation":"

    The returned value from an Add On.

    " + } + }, + "documentation":"

    The result of an analysis can be used in conditions to trigger actions. Analyses can inspect the email content and report a certain aspect of the email.

    " + }, + "AnalyzerArn":{ + "type":"string", + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "Archive":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

    The unique identifier of the archive.

    " + }, + "ArchiveName":{ + "shape":"ArchiveNameString", + "documentation":"

    The unique name assigned to the archive.

    " + }, + "ArchiveState":{ + "shape":"ArchiveState", + "documentation":"

    The current state of the archive:

    • ACTIVE – The archive is ready and available for use.

    • PENDING_DELETION – The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state.

    " + }, + "LastUpdatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the archive was last updated.

    " + } + }, + "documentation":"

    An archive resource for storing and retaining emails.

    " + }, + "ArchiveAction":{ + "type":"structure", + "required":["TargetArchive"], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

    A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified archive has been deleted.

    " + }, + "TargetArchive":{ + "shape":"NameOrArn", + "documentation":"

    The identifier of the archive to send the email to.

    " + } + }, + "documentation":"

    The action to archive the email by delivering the email to an Amazon SES archive.

    " + }, + "ArchiveArn":{"type":"string"}, + "ArchiveBooleanEmailAttribute":{ + "type":"string", + "enum":["HAS_ATTACHMENTS"] + }, + "ArchiveBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{ + "shape":"ArchiveBooleanToEvaluate", + "documentation":"

    The email attribute value to evaluate.

    " + }, + "Operator":{ + "shape":"ArchiveBooleanOperator", + "documentation":"

    The boolean operator to use for evaluation.

    " + } + }, + "documentation":"

    A boolean expression to evaluate email attribute values.

    " + }, + "ArchiveBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "ArchiveBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"ArchiveBooleanEmailAttribute", + "documentation":"

    The name of the email attribute to evaluate.

    " + } + }, + "documentation":"

    The attribute to evaluate in a boolean expression.

    ", + "union":true + }, + "ArchiveFilterCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{ + "shape":"ArchiveBooleanExpression", + "documentation":"

    A boolean expression to evaluate against email attributes.

    " + }, + "StringExpression":{ + "shape":"ArchiveStringExpression", + "documentation":"

    A string expression to evaluate against email attributes.

    " + } + }, + "documentation":"

    A filter condition used to include or exclude emails when exporting from or searching an archive.

    ", + "union":true + }, + "ArchiveFilterConditions":{ + "type":"list", + "member":{"shape":"ArchiveFilterCondition"}, + "max":10, + "min":0 + }, + "ArchiveFilters":{ + "type":"structure", + "members":{ + "Include":{ + "shape":"ArchiveFilterConditions", + "documentation":"

    The filter conditions for emails to include.

    " + }, + "Unless":{ + "shape":"ArchiveFilterConditions", + "documentation":"

    The filter conditions for emails to exclude.

    " + } + }, + "documentation":"

    A set of filter conditions to include and/or exclude emails.

    " + }, + "ArchiveId":{ + "type":"string", + "max":66, + "min":3, + "pattern":"^a-[\\w]{1,64}$" + }, + "ArchiveIdString":{ + "type":"string", + "max":66, + "min":1 + }, + "ArchiveNameString":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]$" + }, + "ArchiveRetention":{ + "type":"structure", + "members":{ + "RetentionPeriod":{ + "shape":"RetentionPeriod", + "documentation":"

    The enum value sets the period for retaining emails in an archive.

    " + } + }, + "documentation":"

    The retention policy for an email archive that specifies how long emails are kept before being automatically deleted.

    ", + "union":true + }, + "ArchiveState":{ + "type":"string", + "enum":[ + "ACTIVE", + "PENDING_DELETION" + ] + }, + "ArchiveStringEmailAttribute":{ + "type":"string", + "enum":[ + "TO", + "FROM", + "CC", + "SUBJECT" + ] + }, + "ArchiveStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"ArchiveStringToEvaluate", + "documentation":"

    The attribute of the email to evaluate.

    " + }, + "Operator":{ + "shape":"ArchiveStringOperator", + "documentation":"

    The operator to use when evaluating the string values.

    " + }, + "Values":{ + "shape":"StringValueList", + "documentation":"

    The list of string values to evaluate the email attribute against.

    " + } + }, + "documentation":"

    A string expression to evaluate an email attribute value against one or more string values.

    " + }, + "ArchiveStringOperator":{ + "type":"string", + "enum":["CONTAINS"] + }, + "ArchiveStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"ArchiveStringEmailAttribute", + "documentation":"

    The name of the email attribute to evaluate.

    " + } + }, + "documentation":"

    Specifies the email attribute to evaluate in a string expression.

    ", + "union":true + }, + "ArchivedMessageId":{"type":"string"}, + "ArchivesList":{ + "type":"list", + "member":{"shape":"Archive"} + }, + "Boolean":{ + "type":"boolean", + "box":true + }, + "ConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

    The request configuration has conflicts. For details, see the accompanying error message.

    ", + "exception":true + }, + "CreateAddonInstanceRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

    The unique ID of a previously created subscription that an Add On instance is created for. You can only have one instance per subscription.

    " + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    ", + "idempotencyToken":true + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + } + }, + "CreateAddonInstanceResponse":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{ + "shape":"AddonInstanceId", + "documentation":"

    The unique ID of the Add On instance created by this API.

    " + } + } + }, + "CreateAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonName"], + "members":{ + "AddonName":{ + "shape":"AddonName", + "documentation":"

    The name of the Add On to subscribe to. You can only have one subscription for each Add On name.

    " + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    ", + "idempotencyToken":true + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + } + }, + "CreateAddonSubscriptionResponse":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

    The unique ID of the Add On subscription created by this API.

    " + } + } + }, + "CreateArchiveRequest":{ + "type":"structure", + "required":["ArchiveName"], + "members":{ + "ArchiveName":{ + "shape":"ArchiveNameString", + "documentation":"

    A unique name for the new archive.

    " + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    A unique token Amazon SES uses to recognize retries of this request.

    ", + "idempotencyToken":true + }, + "KmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"

    The Amazon Resource Name (ARN) of the KMS key for encrypting emails in the archive.

    " + }, + "Retention":{ + "shape":"ArchiveRetention", + "documentation":"

    The period for retaining emails in the archive before automatic deletion.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + }, + "documentation":"

    The request to create a new email archive.

    " + }, + "CreateArchiveResponse":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

    The unique identifier for the newly created archive.

    " + } + }, + "documentation":"

    The response from creating a new email archive.

    " + }, + "CreateIngressPointRequest":{ + "type":"structure", + "required":[ + "IngressPointName", + "RuleSetId", + "TrafficPolicyId", + "Type" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    ", + "idempotencyToken":true + }, + "IngressPointConfiguration":{ + "shape":"IngressPointConfiguration", + "documentation":"

    If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.

    " + }, + "IngressPointName":{ + "shape":"IngressPointName", + "documentation":"

    A user friendly name for an ingress endpoint resource.

    " + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of an existing rule set that you attach to an ingress endpoint resource.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of an existing traffic policy that you attach to an ingress endpoint resource.

    " + }, + "Type":{ + "shape":"IngressPointType", + "documentation":"

    The type of the ingress endpoint to create.

    " + } + } + }, + "CreateIngressPointResponse":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

    The unique identifier for a previously created ingress endpoint.

    " + } + } + }, + "CreateRelayRequest":{ + "type":"structure", + "required":[ + "Authentication", + "RelayName", + "ServerName", + "ServerPort" + ], + "members":{ + "Authentication":{ + "shape":"RelayAuthentication", + "documentation":"

    Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

    " + }, + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    ", + "idempotencyToken":true + }, + "RelayName":{ + "shape":"RelayName", + "documentation":"

    The unique name of the relay resource.

    " + }, + "ServerName":{ + "shape":"RelayServerName", + "documentation":"

    The destination relay server address.

    " + }, + "ServerPort":{ + "shape":"RelayServerPort", + "documentation":"

    The destination relay server port.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + } + }, + "CreateRelayResponse":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{ + "shape":"RelayId", + "documentation":"

    A unique identifier of the created relay resource.

    " + } + } + }, + "CreateRuleSetRequest":{ + "type":"structure", + "required":[ + "RuleSetName", + "Rules" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    ", + "idempotencyToken":true + }, + "RuleSetName":{ + "shape":"RuleSetName", + "documentation":"

    A user-friendly name for the rule set.

    " + }, + "Rules":{ + "shape":"Rules", + "documentation":"

    Conditional rules that are evaluated for determining actions on email.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + } + }, + "CreateRuleSetResponse":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of the created rule set.

    " + } + } + }, + "CreateTrafficPolicyRequest":{ + "type":"structure", + "required":[ + "DefaultAction", + "PolicyStatements", + "TrafficPolicyName" + ], + "members":{ + "ClientToken":{ + "shape":"IdempotencyToken", + "documentation":"

    A unique token that Amazon SES uses to recognize subsequent retries of the same request.

    ", + "idempotencyToken":true + }, + "DefaultAction":{ + "shape":"AcceptAction", + "documentation":"

    Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

    " + }, + "MaxMessageSizeBytes":{ + "shape":"MaxMessageSizeBytes", + "documentation":"

    The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

    " + }, + "PolicyStatements":{ + "shape":"PolicyStatementList", + "documentation":"

    Conditional statements for filtering email traffic.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + }, + "TrafficPolicyName":{ + "shape":"TrafficPolicyName", + "documentation":"

    A user-friendly name for the traffic policy resource.

    " + } + } + }, + "CreateTrafficPolicyResponse":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of the traffic policy resource.

    " + } + } + }, + "DeleteAddonInstanceRequest":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{ + "shape":"AddonInstanceId", + "documentation":"

    The Add On instance ID to delete.

    " + } + } + }, + "DeleteAddonInstanceResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

    The Add On subscription ID to delete.

    " + } + } + }, + "DeleteAddonSubscriptionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

    The identifier of the archive to delete.

    " + } + }, + "documentation":"

    The request to initiate deletion of an email archive.

    " + }, + "DeleteArchiveResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"

    The response indicating if the archive deletion was successfully initiated.

    On success, returns an HTTP 200 status code. On failure, returns an error message.

    " + }, + "DeleteIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

    The identifier of the ingress endpoint resource that you want to delete.

    " + } + } + }, + "DeleteIngressPointResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{ + "shape":"RelayId", + "documentation":"

    The unique relay identifier.

    " + } + } + }, + "DeleteRelayResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of an existing rule set resource to delete.

    " + } + } + }, + "DeleteRuleSetResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of the traffic policy that you want to delete.

    " + } + } + }, + "DeleteTrafficPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "DeliverToMailboxAction":{ + "type":"structure", + "required":[ + "MailboxArn", + "RoleArn" + ], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

    A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the mailbox ARN is no longer valid.

    " + }, + "MailboxArn":{ + "shape":"NameOrArn", + "documentation":"

    The Amazon Resource Name (ARN) of a WorkMail organization to deliver the email to.

    " + }, + "RoleArn":{ + "shape":"IamRoleArn", + "documentation":"

    The Amazon Resource Name (ARN) of an IAM role to use to execute this action. The role must have access to the workmail:DeliverToMailbox API.

    " + } + }, + "documentation":"

    This action to delivers an email to a mailbox.

    " + }, + "Double":{ + "type":"double", + "box":true + }, + "DropAction":{ + "type":"structure", + "members":{ + }, + "documentation":"

    This action causes processing to stop and the email to be dropped. If the action applies only to certain recipients, only those recipients are dropped, and processing continues for other recipients.

    " + }, + "EmailAddress":{ + "type":"string", + "max":254, + "min":0, + "pattern":"^[0-9A-Za-z@+.-]+$", + "sensitive":true + }, + "EmailReceivedHeadersList":{ + "type":"list", + "member":{"shape":"String"} + }, + "ErrorMessage":{"type":"string"}, + "ExportDestinationConfiguration":{ + "type":"structure", + "members":{ + "S3":{ + "shape":"S3ExportDestinationConfiguration", + "documentation":"

    Configuration for delivering to an Amazon S3 bucket.

    " + } + }, + "documentation":"

    The destination configuration for delivering exported email data.

    ", + "union":true + }, + "ExportId":{ + "type":"string", + "max":64, + "min":1 + }, + "ExportMaxResults":{ + "type":"integer", + "box":true + }, + "ExportState":{ + "type":"string", + "enum":[ + "QUEUED", + "PREPROCESSING", + "PROCESSING", + "COMPLETED", + "FAILED", + "CANCELLED" + ] + }, + "ExportStatus":{ + "type":"structure", + "members":{ + "CompletionTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the export job completed (if finished).

    " + }, + "ErrorMessage":{ + "shape":"ErrorMessage", + "documentation":"

    An error message if the export job failed.

    " + }, + "State":{ + "shape":"ExportState", + "documentation":"

    The current state of the export job.

    " + }, + "SubmissionTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the export job was submitted.

    " + } + }, + "documentation":"

    The current status of an archive export job.

    " + }, + "ExportSummary":{ + "type":"structure", + "members":{ + "ExportId":{ + "shape":"ExportId", + "documentation":"

    The unique identifier of the export job.

    " + }, + "Status":{ + "shape":"ExportStatus", + "documentation":"

    The current status of the export job.

    " + } + }, + "documentation":"

    Summary statuses of an archive export job.

    " + }, + "ExportSummaryList":{ + "type":"list", + "member":{"shape":"ExportSummary"} + }, + "GetAddonInstanceRequest":{ + "type":"structure", + "required":["AddonInstanceId"], + "members":{ + "AddonInstanceId":{ + "shape":"AddonInstanceId", + "documentation":"

    The Add On instance ID to retrieve information for.

    " + } + } + }, + "GetAddonInstanceResponse":{ + "type":"structure", + "members":{ + "AddonInstanceArn":{ + "shape":"AddonInstanceArn", + "documentation":"

    The Amazon Resource Name (ARN) of the Add On instance.

    " + }, + "AddonName":{ + "shape":"AddonName", + "documentation":"

    The name of the Add On provider associated to the subscription of the instance.

    " + }, + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

    The subscription ID associated to the instance.

    " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the Add On instance was created.

    " + } + } + }, + "GetAddonSubscriptionRequest":{ + "type":"structure", + "required":["AddonSubscriptionId"], + "members":{ + "AddonSubscriptionId":{ + "shape":"AddonSubscriptionId", + "documentation":"

    The Add On subscription ID to retrieve information for.

    " + } + } + }, + "GetAddonSubscriptionResponse":{ + "type":"structure", + "members":{ + "AddonName":{ + "shape":"AddonName", + "documentation":"

    The name of the Add On for the subscription.

    " + }, + "AddonSubscriptionArn":{ + "shape":"AddonSubscriptionArn", + "documentation":"

    Amazon Resource Name (ARN) for the subscription.

    " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the Add On subscription was created.

    " + } + } + }, + "GetArchiveExportRequest":{ + "type":"structure", + "required":["ExportId"], + "members":{ + "ExportId":{ + "shape":"ExportId", + "documentation":"

    The identifier of the export job to get details for.

    " + } + }, + "documentation":"

    The request to retrieve details of a specific archive export job.

    " + }, + "GetArchiveExportResponse":{ + "type":"structure", + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

    The identifier of the archive the email export was performed from.

    " + }, + "ExportDestinationConfiguration":{ + "shape":"ExportDestinationConfiguration", + "documentation":"

    Where the exported emails are being delivered.

    " + }, + "Filters":{ + "shape":"ArchiveFilters", + "documentation":"

    The criteria used to filter emails included in the export.

    " + }, + "FromTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The start of the timestamp range the exported emails cover.

    " + }, + "MaxResults":{ + "shape":"ExportMaxResults", + "documentation":"

    The maximum number of email items included in the export.

    " + }, + "Status":{ + "shape":"ExportStatus", + "documentation":"

    The current status of the export job.

    " + }, + "ToTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The end of the date range the exported emails cover.

    " + } + }, + "documentation":"

    The response containing details of the specified archive export job.

    " + }, + "GetArchiveMessageContentRequest":{ + "type":"structure", + "required":["ArchivedMessageId"], + "members":{ + "ArchivedMessageId":{ + "shape":"ArchivedMessageId", + "documentation":"

    The unique identifier of the archived email message.

    " + } + }, + "documentation":"

    The request to get the textual content of a specific email message stored in an archive.

    " + }, + "GetArchiveMessageContentResponse":{ + "type":"structure", + "members":{ + "Body":{ + "shape":"MessageBody", + "documentation":"

    The textual body content of the email message.

    " + } + }, + "documentation":"

    The response containing the textual content of the requested archived email message.

    " + }, + "GetArchiveMessageRequest":{ + "type":"structure", + "required":["ArchivedMessageId"], + "members":{ + "ArchivedMessageId":{ + "shape":"ArchivedMessageId", + "documentation":"

    The unique identifier of the archived email message.

    " + } + }, + "documentation":"

    The request to get details of a specific email message stored in an archive.

    " + }, + "GetArchiveMessageResponse":{ + "type":"structure", + "members":{ + "MessageDownloadLink":{ + "shape":"S3PresignedURL", + "documentation":"

    A pre-signed URL to temporarily download the full message content.

    " + } + }, + "documentation":"

    The response containing details about the requested archived email message.

    " + }, + "GetArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

    The identifier of the archive to retrieve.

    " + } + }, + "documentation":"

    The request to retrieve details of an email archive.

    " + }, + "GetArchiveResponse":{ + "type":"structure", + "required":[ + "ArchiveArn", + "ArchiveId", + "ArchiveName", + "ArchiveState", + "Retention" + ], + "members":{ + "ArchiveArn":{ + "shape":"ArchiveArn", + "documentation":"

    The Amazon Resource Name (ARN) of the archive.

    " + }, + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

    The unique identifier of the archive.

    " + }, + "ArchiveName":{ + "shape":"ArchiveNameString", + "documentation":"

    The unique name assigned to the archive.

    " + }, + "ArchiveState":{ + "shape":"ArchiveState", + "documentation":"

    The current state of the archive:

    • ACTIVE – The archive is ready and available for use.

    • PENDING_DELETION – The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state.

    " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the archive was created.

    " + }, + "KmsKeyArn":{ + "shape":"KmsKeyArn", + "documentation":"

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive.

    " + }, + "LastUpdatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the archive was modified.

    " + }, + "Retention":{ + "shape":"ArchiveRetention", + "documentation":"

    The retention period for emails in this archive.

    " + } + }, + "documentation":"

    The response containing details of the requested archive.

    " + }, + "GetArchiveSearchRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

    The identifier of the search job to get details for.

    " + } + }, + "documentation":"

    The request to retrieve details of a specific archive search job.

    " + }, + "GetArchiveSearchResponse":{ + "type":"structure", + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

    The identifier of the archive the email search was performed in.

    " + }, + "Filters":{ + "shape":"ArchiveFilters", + "documentation":"

    The criteria used to filter emails included in the search.

    " + }, + "FromTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The start timestamp of the range the searched emails cover.

    " + }, + "MaxResults":{ + "shape":"SearchMaxResults", + "documentation":"

    The maximum number of search results to return.

    " + }, + "Status":{ + "shape":"SearchStatus", + "documentation":"

    The current status of the search job.

    " + }, + "ToTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The end timestamp of the range the searched emails cover.

    " + } + }, + "documentation":"

    The response containing details of the specified archive search job.

    " + }, + "GetArchiveSearchResultsRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

    The identifier of the completed search job.

    " + } + }, + "documentation":"

    The request to retrieve results from a completed archive search job.

    " + }, + "GetArchiveSearchResultsResponse":{ + "type":"structure", + "members":{ + "Rows":{ + "shape":"RowsList", + "documentation":"

    The list of email result objects matching the search criteria.

    " + } + }, + "documentation":"

    The response containing search results from a completed archive search.

    " + }, + "GetIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

    The identifier of an ingress endpoint.

    " + } + } + }, + "GetIngressPointResponse":{ + "type":"structure", + "required":[ + "IngressPointId", + "IngressPointName" + ], + "members":{ + "ARecord":{ + "shape":"IngressPointARecord", + "documentation":"

    The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager.

    " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the ingress endpoint was created.

    " + }, + "IngressPointArn":{ + "shape":"IngressPointArn", + "documentation":"

    The Amazon Resource Name (ARN) of the ingress endpoint resource.

    " + }, + "IngressPointAuthConfiguration":{ + "shape":"IngressPointAuthConfiguration", + "documentation":"

    The authentication configuration of the ingress endpoint resource.

    " + }, + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

    The identifier of an ingress endpoint resource.

    " + }, + "IngressPointName":{ + "shape":"IngressPointName", + "documentation":"

    A user friendly name for the ingress endpoint.

    " + }, + "LastUpdatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the ingress endpoint was last updated.

    " + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of a rule set resource associated with the ingress endpoint.

    " + }, + "Status":{ + "shape":"IngressPointStatus", + "documentation":"

    The status of the ingress endpoint resource.

    " + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of the traffic policy resource associated with the ingress endpoint.

    " + }, + "Type":{ + "shape":"IngressPointType", + "documentation":"

    The type of ingress endpoint.

    " + } + } + }, + "GetRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "RelayId":{ + "shape":"RelayId", + "documentation":"

    A unique relay identifier.

    " + } + } + }, + "GetRelayResponse":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "Authentication":{ + "shape":"RelayAuthentication", + "documentation":"

    The authentication attribute—contains the secret ARN where the customer relay server credentials are stored.

    " + }, + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the relay was created.

    " + }, + "LastModifiedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when relay was last updated.

    " + }, + "RelayArn":{ + "shape":"RelayArn", + "documentation":"

    The Amazon Resource Name (ARN) of the relay.

    " + }, + "RelayId":{ + "shape":"RelayId", + "documentation":"

    The unique relay identifier.

    " + }, + "RelayName":{ + "shape":"RelayName", + "documentation":"

    The unique name of the relay.

    " + }, + "ServerName":{ + "shape":"RelayServerName", + "documentation":"

    The destination relay server address.

    " + }, + "ServerPort":{ + "shape":"RelayServerPort", + "documentation":"

    The destination relay server port.

    " + } + } + }, + "GetRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of an existing rule set to be retrieved.

    " + } + } + }, + "GetRuleSetResponse":{ + "type":"structure", + "required":[ + "CreatedDate", + "LastModificationDate", + "RuleSetArn", + "RuleSetId", + "RuleSetName", + "Rules" + ], + "members":{ + "CreatedDate":{ + "shape":"Timestamp", + "documentation":"

    The date of when then rule set was created.

    " + }, + "LastModificationDate":{ + "shape":"Timestamp", + "documentation":"

    The date of when the rule set was last modified.

    " + }, + "RuleSetArn":{ + "shape":"RuleSetArn", + "documentation":"

    The Amazon Resource Name (ARN) of the rule set resource.

    " + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of the rule set resource.

    " + }, + "RuleSetName":{ + "shape":"RuleSetName", + "documentation":"

    A user-friendly name for the rule set resource.

    " + }, + "Rules":{ + "shape":"Rules", + "documentation":"

    The rules contained in the rule set.

    " + } + } + }, + "GetTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of the traffic policy resource.

    " + } + } + }, + "GetTrafficPolicyResponse":{ + "type":"structure", + "required":[ + "TrafficPolicyId", + "TrafficPolicyName" + ], + "members":{ + "CreatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the traffic policy was created.

    " + }, + "DefaultAction":{ + "shape":"AcceptAction", + "documentation":"

    The default action of the traffic policy.

    " + }, + "LastUpdatedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the traffic policy was last updated.

    " + }, + "MaxMessageSizeBytes":{ + "shape":"MaxMessageSizeBytes", + "documentation":"

    The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

    " + }, + "PolicyStatements":{ + "shape":"PolicyStatementList", + "documentation":"

    The list of conditions which are in the traffic policy resource.

    " + }, + "TrafficPolicyArn":{ + "shape":"TrafficPolicyArn", + "documentation":"

    The Amazon Resource Name (ARN) of the traffic policy resource.

    " + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of the traffic policy resource.

    " + }, + "TrafficPolicyName":{ + "shape":"TrafficPolicyName", + "documentation":"

    A user-friendly name for the traffic policy resource.

    " + } + } + }, + "HeaderName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[xX]\\-[a-zA-Z0-9\\-]+$" + }, + "HeaderValue":{ + "type":"string", + "max":128, + "min":1 + }, + "IamRoleArn":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "IdOrArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "IdempotencyToken":{ + "type":"string", + "max":128, + "min":1 + }, + "IngressAnalysis":{ + "type":"structure", + "required":[ + "Analyzer", + "ResultField" + ], + "members":{ + "Analyzer":{ + "shape":"AnalyzerArn", + "documentation":"

    The Amazon Resource Name (ARN) of an Add On.

    " + }, + "ResultField":{ + "shape":"ResultField", + "documentation":"

    The returned value from an Add On.

    " + } + }, + "documentation":"

    The Add On ARN and its returned value that is evaluated in a policy statement's conditional expression to either deny or block the incoming email.

    " + }, + "IngressBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{ + "shape":"IngressBooleanToEvaluate", + "documentation":"

    The operand on which to perform a boolean condition operation.

    " + }, + "Operator":{ + "shape":"IngressBooleanOperator", + "documentation":"

    The matching operator for a boolean condition expression.

    " + } + }, + "documentation":"

    The structure for a boolean condition matching on the incoming mail.

    " + }, + "IngressBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "IngressBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Analysis":{ + "shape":"IngressAnalysis", + "documentation":"

    The structure type for a boolean condition stating the Add On ARN and its returned value.

    " + } + }, + "documentation":"

    The union type representing the allowed types of operands for a boolean condition.

    ", + "union":true + }, + "IngressIpOperator":{ + "type":"string", + "enum":[ + "CIDR_MATCHES", + "NOT_CIDR_MATCHES" + ] + }, + "IngressIpToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"IngressIpv4Attribute", + "documentation":"

    An enum type representing the allowed attribute types for an IP condition.

    " + } + }, + "documentation":"

    The structure for an IP based condition matching on the incoming mail.

    ", + "union":true + }, + "IngressIpv4Attribute":{ + "type":"string", + "enum":["SENDER_IP"] + }, + "IngressIpv4Expression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"IngressIpToEvaluate", + "documentation":"

    The left hand side argument of an IP condition expression.

    " + }, + "Operator":{ + "shape":"IngressIpOperator", + "documentation":"

    The matching operator for an IP condition expression.

    " + }, + "Values":{ + "shape":"Ipv4Cidrs", + "documentation":"

    The right hand side argument of an IP condition expression.

    " + } + }, + "documentation":"

    The union type representing the allowed types for the left hand side of an IP condition.

    " + }, + "IngressPoint":{ + "type":"structure", + "required":[ + "IngressPointId", + "IngressPointName", + "Status", + "Type" + ], + "members":{ + "ARecord":{ + "shape":"IngressPointARecord", + "documentation":"

    The DNS A Record that identifies your ingress endpoint. Configure your DNS Mail Exchange (MX) record with this value to route emails to Mail Manager.

    " + }, + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

    The identifier of the ingress endpoint resource.

    " + }, + "IngressPointName":{ + "shape":"IngressPointName", + "documentation":"

    A user friendly name for the ingress endpoint resource.

    " + }, + "Status":{ + "shape":"IngressPointStatus", + "documentation":"

    The status of the ingress endpoint resource.

    " + }, + "Type":{ + "shape":"IngressPointType", + "documentation":"

    The type of ingress endpoint resource.

    " + } + }, + "documentation":"

    The structure of an ingress endpoint resource.

    " + }, + "IngressPointARecord":{"type":"string"}, + "IngressPointArn":{"type":"string"}, + "IngressPointAuthConfiguration":{ + "type":"structure", + "members":{ + "IngressPointPasswordConfiguration":{ + "shape":"IngressPointPasswordConfiguration", + "documentation":"

    The ingress endpoint password configuration for the ingress endpoint resource.

    " + }, + "SecretArn":{ + "shape":"SecretArn", + "documentation":"

    The ingress endpoint SecretsManager::Secret ARN configuration for the ingress endpoint resource.

    " + } + }, + "documentation":"

    The authentication configuration for the ingress endpoint resource.

    " + }, + "IngressPointConfiguration":{ + "type":"structure", + "members":{ + "SecretArn":{ + "shape":"SecretArn", + "documentation":"

    The SecretsManager::Secret ARN of the ingress endpoint resource.

    " + }, + "SmtpPassword":{ + "shape":"SmtpPassword", + "documentation":"

    The password of the ingress endpoint resource.

    " + } + }, + "documentation":"

    The configuration of the ingress endpoint resource.

    ", + "union":true + }, + "IngressPointId":{ + "type":"string", + "max":100, + "min":1 + }, + "IngressPointName":{ + "type":"string", + "max":63, + "min":3, + "pattern":"^[A-Za-z0-9_\\-]+$" + }, + "IngressPointPasswordConfiguration":{ + "type":"structure", + "members":{ + "PreviousSmtpPasswordExpiryTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The previous password expiry timestamp of the ingress endpoint resource.

    " + }, + "PreviousSmtpPasswordVersion":{ + "shape":"String", + "documentation":"

    The previous password version of the ingress endpoint resource.

    " + }, + "SmtpPasswordVersion":{ + "shape":"String", + "documentation":"

    The current password expiry timestamp of the ingress endpoint resource.

    " + } + }, + "documentation":"

    The password configuration of the ingress endpoint resource.

    " + }, + "IngressPointStatus":{ + "type":"string", + "enum":[ + "PROVISIONING", + "DEPROVISIONING", + "UPDATING", + "ACTIVE", + "CLOSED", + "FAILED" + ] + }, + "IngressPointStatusToUpdate":{ + "type":"string", + "enum":[ + "ACTIVE", + "CLOSED" + ] + }, + "IngressPointType":{ + "type":"string", + "enum":[ + "OPEN", + "AUTH" + ] + }, + "IngressPointsList":{ + "type":"list", + "member":{"shape":"IngressPoint"} + }, + "IngressStringEmailAttribute":{ + "type":"string", + "enum":["RECIPIENT"] + }, + "IngressStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"IngressStringToEvaluate", + "documentation":"

    The left hand side argument of a string condition expression.

    " + }, + "Operator":{ + "shape":"IngressStringOperator", + "documentation":"

    The matching operator for a string condition expression.

    " + }, + "Values":{ + "shape":"StringList", + "documentation":"

    The right hand side argument of a string condition expression.

    " + } + }, + "documentation":"

    The structure for a string based condition matching on the incoming mail.

    " + }, + "IngressStringOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "STARTS_WITH", + "ENDS_WITH", + "CONTAINS" + ] + }, + "IngressStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"IngressStringEmailAttribute", + "documentation":"

    The enum type representing the allowed attribute types for a string condition.

    " + } + }, + "documentation":"

    The union type representing the allowed types for the left hand side of a string condition.

    ", + "union":true + }, + "IngressTlsAttribute":{ + "type":"string", + "enum":["TLS_PROTOCOL"] + }, + "IngressTlsProtocolAttribute":{ + "type":"string", + "enum":[ + "TLS1_2", + "TLS1_3" + ] + }, + "IngressTlsProtocolExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Value" + ], + "members":{ + "Evaluate":{ + "shape":"IngressTlsProtocolToEvaluate", + "documentation":"

    The left hand side argument of a TLS condition expression.

    " + }, + "Operator":{ + "shape":"IngressTlsProtocolOperator", + "documentation":"

    The matching operator for a TLS condition expression.

    " + }, + "Value":{ + "shape":"IngressTlsProtocolAttribute", + "documentation":"

    The right hand side argument of a TLS condition expression.

    " + } + }, + "documentation":"

    The structure for a TLS related condition matching on the incoming mail.

    " + }, + "IngressTlsProtocolOperator":{ + "type":"string", + "enum":[ + "MINIMUM_TLS_VERSION", + "IS" + ] + }, + "IngressTlsProtocolToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"IngressTlsAttribute", + "documentation":"

    The enum type representing the allowed attribute types for the TLS condition.

    " + } + }, + "documentation":"

    The union type representing the allowed types for the left hand side of a TLS condition.

    ", + "union":true + }, + "Integer":{ + "type":"integer", + "box":true + }, + "Ipv4Cidr":{ + "type":"string", + "pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/([0-9]|[12][0-9]|3[0-2])$" + }, + "Ipv4Cidrs":{ + "type":"list", + "member":{"shape":"Ipv4Cidr"} + }, + "KmsKeyArn":{ + "type":"string", + "pattern":"^arn:aws(|-cn|-us-gov):kms:[a-z0-9-]{1,20}:[0-9]{12}:(key|alias)/.+$" + }, + "KmsKeyId":{ + "type":"string", + "max":2048, + "min":20, + "pattern":"^[a-zA-Z0-9-:/]+$" + }, + "ListAddonInstancesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

    " + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

    The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

    " + } + } + }, + "ListAddonInstancesResponse":{ + "type":"structure", + "members":{ + "AddonInstances":{ + "shape":"AddonInstances", + "documentation":"

    The list of ingress endpoints.

    " + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + } + } + }, + "ListAddonSubscriptionsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

    " + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

    The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

    " + } + } + }, + "ListAddonSubscriptionsResponse":{ + "type":"structure", + "members":{ + "AddonSubscriptions":{ + "shape":"AddonSubscriptions", + "documentation":"

    The list of ingress endpoints.

    " + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + } + } + }, + "ListArchiveExportsRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

    The identifier of the archive.

    " + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

    The maximum number of archive export jobs that are returned per call. You can use NextToken to obtain further pages of archives.

    " + } + }, + "documentation":"

    The request to list archive export jobs in your account.

    " + }, + "ListArchiveExportsResponse":{ + "type":"structure", + "members":{ + "Exports":{ + "shape":"ExportSummaryList", + "documentation":"

    The list of export job identifiers and statuses.

    " + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If present, use to retrieve the next page of results.

    " + } + }, + "documentation":"

    The response containing a list of archive export jobs and their statuses.

    " + }, + "ListArchiveSearchesRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

    The identifier of the archive.

    " + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

    The maximum number of archive search jobs that are returned per call. You can use NextToken to obtain further pages of archives.

    " + } + }, + "documentation":"

    The request to list archive search jobs in your account.

    " + }, + "ListArchiveSearchesResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If present, use to retrieve the next page of results.

    " + }, + "Searches":{ + "shape":"SearchSummaryList", + "documentation":"

    The list of search job identifiers and statuses.

    " + } + }, + "documentation":"

    The response containing a list of archive search jobs and their statuses.

    " + }, + "ListArchivesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

    The maximum number of archives that are returned per call. You can use NextToken to obtain further pages of archives.

    " + } + }, + "documentation":"

    The request to list email archives in your account.

    " + }, + "ListArchivesResponse":{ + "type":"structure", + "required":["Archives"], + "members":{ + "Archives":{ + "shape":"ArchivesList", + "documentation":"

    The list of archive details.

    " + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If present, use to retrieve the next page of results.

    " + } + }, + "documentation":"

    The response containing a list of your email archives.

    " + }, + "ListIngressPointsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

    " + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

    The maximum number of ingress endpoint resources that are returned per call. You can use NextToken to obtain further ingress endpoints.

    " + } + } + }, + "ListIngressPointsResponse":{ + "type":"structure", + "members":{ + "IngressPoints":{ + "shape":"IngressPointsList", + "documentation":"

    The list of ingress endpoints.

    " + }, + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + } + } + }, + "ListRelaysRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

    " + }, + "PageSize":{ + "shape":"Integer", + "documentation":"

    The number of relays to be returned in one request.

    " + } + } + }, + "ListRelaysResponse":{ + "type":"structure", + "required":["Relays"], + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + }, + "Relays":{ + "shape":"Relays", + "documentation":"

    The list of returned relays.

    " + } + } + }, + "ListRuleSetsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

    " + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

    The maximum number of rule set resources that are returned per call. You can use NextToken to obtain further rule sets.

    " + } + } + }, + "ListRuleSetsResponse":{ + "type":"structure", + "required":["RuleSets"], + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + }, + "RuleSets":{ + "shape":"RuleSets", + "documentation":"

    The list of rule sets.

    " + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{ + "shape":"TaggableResourceArn", + "documentation":"

    The Amazon Resource Name (ARN) of the resource to retrieve tags from.

    " + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["Tags"], + "members":{ + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + } + }, + "ListTrafficPoliciesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If you received a pagination token from a previous call to this API, you can provide it here to continue paginating through the next page of results.

    " + }, + "PageSize":{ + "shape":"PageSize", + "documentation":"

    The maximum number of traffic policy resources that are returned per call. You can use NextToken to obtain further traffic policies.

    " + } + } + }, + "ListTrafficPoliciesResponse":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "documentation":"

    If NextToken is returned, there are more results available. The value of NextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

    " + }, + "TrafficPolicies":{ + "shape":"TrafficPolicyList", + "documentation":"

    The list of traffic policies.

    " + } + } + }, + "MailFrom":{ + "type":"string", + "enum":[ + "REPLACE", + "PRESERVE" + ] + }, + "MaxMessageSizeBytes":{ + "type":"integer", + "box":true, + "min":1 + }, + "MessageBody":{ + "type":"structure", + "members":{ + "Html":{ + "shape":"String", + "documentation":"

    The HTML body content of the message.

    " + }, + "MessageMalformed":{ + "shape":"Boolean", + "documentation":"

    A flag indicating if the email was malformed.

    " + }, + "Text":{ + "shape":"String", + "documentation":"

    The plain text body content of the message.

    " + } + }, + "documentation":"

    The textual body content of an email message.

    " + }, + "NameOrArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[a-zA-Z0-9:_/+=,@.#-]+$" + }, + "NoAuthentication":{ + "type":"structure", + "members":{ + }, + "documentation":"

    Explicitly indicate that the relay destination server does not require SMTP credential authentication.

    " + }, + "PageSize":{ + "type":"integer", + "box":true, + "max":50, + "min":1 + }, + "PaginationToken":{ + "type":"string", + "max":2048, + "min":1 + }, + "PolicyCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{ + "shape":"IngressBooleanExpression", + "documentation":"

    This represents a boolean type condition matching on the incoming mail. It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

    " + }, + "IpExpression":{ + "shape":"IngressIpv4Expression", + "documentation":"

    This represents an IP based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

    " + }, + "StringExpression":{ + "shape":"IngressStringExpression", + "documentation":"

    This represents a string based condition matching on the incoming mail. It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

    " + }, + "TlsExpression":{ + "shape":"IngressTlsProtocolExpression", + "documentation":"

    This represents a TLS based condition matching on the incoming mail. It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.

    " + } + }, + "documentation":"

    The email traffic filtering conditions which are contained in a traffic policy resource.

    ", + "union":true + }, + "PolicyConditions":{ + "type":"list", + "member":{"shape":"PolicyCondition"}, + "min":1 + }, + "PolicyStatement":{ + "type":"structure", + "required":[ + "Action", + "Conditions" + ], + "members":{ + "Action":{ + "shape":"AcceptAction", + "documentation":"

    The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.

    " + }, + "Conditions":{ + "shape":"PolicyConditions", + "documentation":"

    The list of conditions to apply to incoming messages for filtering email traffic.

    " + } + }, + "documentation":"

    The structure containing traffic policy conditions and actions.

    " + }, + "PolicyStatementList":{ + "type":"list", + "member":{"shape":"PolicyStatement"} + }, + "Recipients":{ + "type":"list", + "member":{"shape":"EmailAddress"}, + "max":100, + "min":1 + }, + "Relay":{ + "type":"structure", + "members":{ + "LastModifiedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the relay was last modified.

    " + }, + "RelayId":{ + "shape":"RelayId", + "documentation":"

    The unique relay identifier.

    " + }, + "RelayName":{ + "shape":"RelayName", + "documentation":"

    The unique relay name.

    " + } + }, + "documentation":"

    The relay resource that can be used as a rule to relay receiving emails to the destination relay server.

    " + }, + "RelayAction":{ + "type":"structure", + "required":["Relay"], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

    A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified relay has been deleted.

    " + }, + "MailFrom":{ + "shape":"MailFrom", + "documentation":"

    This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.

    " + }, + "Relay":{ + "shape":"IdOrArn", + "documentation":"

    The identifier of the relay resource to be used when relaying an email.

    " + } + }, + "documentation":"

    The action relays the email via SMTP to another specific SMTP server.

    " + }, + "RelayArn":{"type":"string"}, + "RelayAuthentication":{ + "type":"structure", + "members":{ + "NoAuthentication":{ + "shape":"NoAuthentication", + "documentation":"

    Keep an empty structure if the relay destination server does not require SMTP credential authentication.

    " + }, + "SecretArn":{ + "shape":"SecretArn", + "documentation":"

    The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.

    " + } + }, + "documentation":"

    Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored, or specify an empty NoAuthentication structure if the relay destination server does not require SMTP credential authentication.

    ", + "union":true + }, + "RelayId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-]+$" + }, + "RelayName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-_]+$" + }, + "RelayServerName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9-\\.]+$" + }, + "RelayServerPort":{ + "type":"integer", + "box":true, + "max":65535, + "min":1 + }, + "Relays":{ + "type":"list", + "member":{"shape":"Relay"} + }, + "ReplaceRecipientAction":{ + "type":"structure", + "members":{ + "ReplaceWith":{ + "shape":"Recipients", + "documentation":"

    This action specifies the replacement recipient email addresses to insert.

    " + } + }, + "documentation":"

    This action replaces the email envelope recipients with the given list of recipients. If the condition of this action applies only to a subset of recipients, only those recipients are replaced with the recipients specified in the action. The message contents and headers are unaffected by this action, only the envelope recipients are updated.

    " + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

    Occurs when a requested resource is not found.

    ", + "exception":true + }, + "ResultField":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[\\sa-zA-Z0-9_]+$" + }, + "RetentionPeriod":{ + "type":"string", + "enum":[ + "THREE_MONTHS", + "SIX_MONTHS", + "NINE_MONTHS", + "ONE_YEAR", + "EIGHTEEN_MONTHS", + "TWO_YEARS", + "THIRTY_MONTHS", + "THREE_YEARS", + "FOUR_YEARS", + "FIVE_YEARS", + "SIX_YEARS", + "SEVEN_YEARS", + "EIGHT_YEARS", + "NINE_YEARS", + "TEN_YEARS", + "PERMANENT" + ] + }, + "Row":{ + "type":"structure", + "members":{ + "ArchivedMessageId":{ + "shape":"ArchivedMessageId", + "documentation":"

    The unique identifier of the archived message.

    " + }, + "Cc":{ + "shape":"String", + "documentation":"

    The email addresses in the CC header.

    " + }, + "Date":{ + "shape":"String", + "documentation":"

    The date the email was sent.

    " + }, + "From":{ + "shape":"String", + "documentation":"

    The email address of the sender.

    " + }, + "HasAttachments":{ + "shape":"Boolean", + "documentation":"

    A flag indicating if the email has attachments.

    " + }, + "InReplyTo":{ + "shape":"String", + "documentation":"

    The email message ID this is a reply to.

    " + }, + "MessageId":{ + "shape":"String", + "documentation":"

    The unique message ID of the email.

    " + }, + "ReceivedHeaders":{ + "shape":"EmailReceivedHeadersList", + "documentation":"

    The received headers from the email delivery path.

    " + }, + "ReceivedTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the email was received.

    " + }, + "Subject":{ + "shape":"String", + "documentation":"

    The subject header value of the email.

    " + }, + "To":{ + "shape":"String", + "documentation":"

    The email addresses in the To header.

    " + }, + "XMailer":{ + "shape":"String", + "documentation":"

    The user agent that sent the email.

    " + }, + "XOriginalMailer":{ + "shape":"String", + "documentation":"

    The original user agent that sent the email.

    " + }, + "XPriority":{ + "shape":"String", + "documentation":"

    The priority level of the email.

    " + } + }, + "documentation":"

    A result row containing metadata for an archived email message.

    " + }, + "RowsList":{ + "type":"list", + "member":{"shape":"Row"} + }, + "Rule":{ + "type":"structure", + "required":["Actions"], + "members":{ + "Actions":{ + "shape":"RuleActions", + "documentation":"

    The list of actions to execute when the conditions match the incoming email, and none of the \"unless conditions\" match.

    " + }, + "Conditions":{ + "shape":"RuleConditions", + "documentation":"

    The conditions of this rule. All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any \"unless conditions\"

    " + }, + "Name":{ + "shape":"RuleName", + "documentation":"

    The user-friendly name of the rule.

    " + }, + "Unless":{ + "shape":"RuleConditions", + "documentation":"

    The \"unless conditions\" of this rule. None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.

    " + } + }, + "documentation":"

    A rule contains conditions, \"unless conditions\" and actions. For each envelope recipient of an email, if all conditions match and none of the \"unless conditions\" match, then all of the actions are executed sequentially. If no conditions are provided, the rule always applies and the actions are implicitly executed. If only \"unless conditions\" are provided, the rule applies if the email does not match the evaluation of the \"unless conditions\".

    " + }, + "RuleAction":{ + "type":"structure", + "members":{ + "AddHeader":{ + "shape":"AddHeaderAction", + "documentation":"

    This action adds a header. This can be used to add arbitrary email headers.

    " + }, + "Archive":{ + "shape":"ArchiveAction", + "documentation":"

    This action archives the email. This can be used to deliver an email to an archive.

    " + }, + "DeliverToMailbox":{ + "shape":"DeliverToMailboxAction", + "documentation":"

    This action delivers an email to a WorkMail mailbox.

    " + }, + "Drop":{ + "shape":"DropAction", + "documentation":"

    This action terminates the evaluation of rules in the rule set.

    " + }, + "Relay":{ + "shape":"RelayAction", + "documentation":"

    This action relays the email to another SMTP server.

    " + }, + "ReplaceRecipient":{ + "shape":"ReplaceRecipientAction", + "documentation":"

    The action replaces certain or all recipients with a different set of recipients.

    " + }, + "Send":{ + "shape":"SendAction", + "documentation":"

    This action sends the email to the internet.

    " + }, + "WriteToS3":{ + "shape":"S3Action", + "documentation":"

    This action writes the MIME content of the email to an S3 bucket.

    " + } + }, + "documentation":"

    The action for a rule to take. Only one of the contained actions can be set.

    ", + "union":true + }, + "RuleActions":{ + "type":"list", + "member":{"shape":"RuleAction"}, + "max":10, + "min":1 + }, + "RuleBooleanEmailAttribute":{ + "type":"string", + "enum":[ + "READ_RECEIPT_REQUESTED", + "TLS", + "TLS_WRAPPED" + ] + }, + "RuleBooleanExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator" + ], + "members":{ + "Evaluate":{ + "shape":"RuleBooleanToEvaluate", + "documentation":"

    The operand on which to perform a boolean condition operation.

    " + }, + "Operator":{ + "shape":"RuleBooleanOperator", + "documentation":"

    The matching operator for a boolean condition expression.

    " + } + }, + "documentation":"

    A boolean expression to be used in a rule condition.

    " + }, + "RuleBooleanOperator":{ + "type":"string", + "enum":[ + "IS_TRUE", + "IS_FALSE" + ] + }, + "RuleBooleanToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"RuleBooleanEmailAttribute", + "documentation":"

    The boolean type representing the allowed attribute types for an email.

    " + } + }, + "documentation":"

    The union type representing the allowed types of operands for a boolean condition.

    ", + "union":true + }, + "RuleCondition":{ + "type":"structure", + "members":{ + "BooleanExpression":{ + "shape":"RuleBooleanExpression", + "documentation":"

    The condition applies to a boolean expression passed in this field.

    " + }, + "DmarcExpression":{ + "shape":"RuleDmarcExpression", + "documentation":"

    The condition applies to a DMARC policy expression passed in this field.

    " + }, + "IpExpression":{ + "shape":"RuleIpExpression", + "documentation":"

    The condition applies to an IP address expression passed in this field.

    " + }, + "NumberExpression":{ + "shape":"RuleNumberExpression", + "documentation":"

    The condition applies to a number expression passed in this field.

    " + }, + "StringExpression":{ + "shape":"RuleStringExpression", + "documentation":"

    The condition applies to a string expression passed in this field.

    " + }, + "VerdictExpression":{ + "shape":"RuleVerdictExpression", + "documentation":"

    The condition applies to a verdict expression passed in this field.

    " + } + }, + "documentation":"

    The conditional expression used to evaluate an email for determining if a rule action should be taken.

    ", + "union":true + }, + "RuleConditions":{ + "type":"list", + "member":{"shape":"RuleCondition"}, + "max":10, + "min":0 + }, + "RuleDmarcExpression":{ + "type":"structure", + "required":[ + "Operator", + "Values" + ], + "members":{ + "Operator":{ + "shape":"RuleDmarcOperator", + "documentation":"

    The operator to apply to the DMARC policy of the incoming email.

    " + }, + "Values":{ + "shape":"RuleDmarcValueList", + "documentation":"

    The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.

    " + } + }, + "documentation":"

    A DMARC policy expression. The condition matches if the given DMARC policy matches that of the incoming email.

    " + }, + "RuleDmarcOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS" + ] + }, + "RuleDmarcPolicy":{ + "type":"string", + "enum":[ + "NONE", + "QUARANTINE", + "REJECT" + ] + }, + "RuleDmarcValueList":{ + "type":"list", + "member":{"shape":"RuleDmarcPolicy"}, + "max":10, + "min":1 + }, + "RuleIpEmailAttribute":{ + "type":"string", + "enum":["SOURCE_IP"] + }, + "RuleIpExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"RuleIpToEvaluate", + "documentation":"

    The IP address to evaluate in this condition.

    " + }, + "Operator":{ + "shape":"RuleIpOperator", + "documentation":"

    The operator to evaluate the IP address.

    " + }, + "Values":{ + "shape":"RuleIpValueList", + "documentation":"

    The IP CIDR blocks in format \"x.y.z.w/n\" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.

    " + } + }, + "documentation":"

    An IP address expression matching certain IP addresses within a given range of IP addresses.

    " + }, + "RuleIpOperator":{ + "type":"string", + "enum":[ + "CIDR_MATCHES", + "NOT_CIDR_MATCHES" + ] + }, + "RuleIpStringValue":{ + "type":"string", + "max":18, + "min":1, + "pattern":"^(([0-9]|.|/)*)$" + }, + "RuleIpToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"RuleIpEmailAttribute", + "documentation":"

    The attribute of the email to evaluate.

    " + } + }, + "documentation":"

    The IP address to evaluate for this condition.

    ", + "union":true + }, + "RuleIpValueList":{ + "type":"list", + "member":{"shape":"RuleIpStringValue"}, + "max":10, + "min":1 + }, + "RuleName":{ + "type":"string", + "max":32, + "min":1, + "pattern":"^[a-zA-Z0-9_.-]+$" + }, + "RuleNumberEmailAttribute":{ + "type":"string", + "enum":["MESSAGE_SIZE"] + }, + "RuleNumberExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Value" + ], + "members":{ + "Evaluate":{ + "shape":"RuleNumberToEvaluate", + "documentation":"

    The number to evaluate in a numeric condition expression.

    " + }, + "Operator":{ + "shape":"RuleNumberOperator", + "documentation":"

    The operator for a numeric condition expression.

    " + }, + "Value":{ + "shape":"Double", + "documentation":"

    The value to evaluate in a numeric condition expression.

    " + } + }, + "documentation":"

    A number expression to match numeric conditions with integers from the incoming email.

    " + }, + "RuleNumberOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "LESS_THAN", + "GREATER_THAN", + "LESS_THAN_OR_EQUAL", + "GREATER_THAN_OR_EQUAL" + ] + }, + "RuleNumberToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"RuleNumberEmailAttribute", + "documentation":"

    An email attribute that is used as the number to evaluate.

    " + } + }, + "documentation":"

    The number to evaluate in a numeric condition expression.

    ", + "union":true + }, + "RuleSet":{ + "type":"structure", + "members":{ + "LastModificationDate":{ + "shape":"Timestamp", + "documentation":"

    The last modification date of the rule set.

    " + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of the rule set.

    " + }, + "RuleSetName":{ + "shape":"RuleSetName", + "documentation":"

    A user-friendly name for the rule set.

    " + } + }, + "documentation":"

    A rule set contains a list of rules that are evaluated in order. Each rule is evaluated sequentially for each email.

    " + }, + "RuleSetArn":{"type":"string"}, + "RuleSetId":{ + "type":"string", + "max":100, + "min":1 + }, + "RuleSetName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[a-zA-Z0-9_.-]+$" + }, + "RuleSets":{ + "type":"list", + "member":{"shape":"RuleSet"} + }, + "RuleStringEmailAttribute":{ + "type":"string", + "enum":[ + "MAIL_FROM", + "HELO", + "RECIPIENT", + "SENDER", + "FROM", + "SUBJECT", + "TO", + "CC" + ] + }, + "RuleStringExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"RuleStringToEvaluate", + "documentation":"

    The string to evaluate in a string condition expression.

    " + }, + "Operator":{ + "shape":"RuleStringOperator", + "documentation":"

    The matching operator for a string condition expression.

    " + }, + "Values":{ + "shape":"RuleStringList", + "documentation":"

    The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.

    " + } + }, + "documentation":"

    A string expression is evaluated against strings or substrings of the email.

    " + }, + "RuleStringList":{ + "type":"list", + "member":{"shape":"RuleStringValue"}, + "max":10, + "min":1 + }, + "RuleStringOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "STARTS_WITH", + "ENDS_WITH", + "CONTAINS" + ] + }, + "RuleStringToEvaluate":{ + "type":"structure", + "members":{ + "Attribute":{ + "shape":"RuleStringEmailAttribute", + "documentation":"

    The email attribute to evaluate in a string condition expression.

    " + } + }, + "documentation":"

    The string to evaluate in a string condition expression.

    ", + "union":true + }, + "RuleStringValue":{ + "type":"string", + "max":4096, + "min":1 + }, + "RuleVerdict":{ + "type":"string", + "enum":[ + "PASS", + "FAIL", + "GRAY", + "PROCESSING_FAILED" + ] + }, + "RuleVerdictAttribute":{ + "type":"string", + "enum":[ + "SPF", + "DKIM" + ] + }, + "RuleVerdictExpression":{ + "type":"structure", + "required":[ + "Evaluate", + "Operator", + "Values" + ], + "members":{ + "Evaluate":{ + "shape":"RuleVerdictToEvaluate", + "documentation":"

    The verdict to evaluate in a verdict condition expression.

    " + }, + "Operator":{ + "shape":"RuleVerdictOperator", + "documentation":"

    The matching operator for a verdict condition expression.

    " + }, + "Values":{ + "shape":"RuleVerdictValueList", + "documentation":"

    The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.

    " + } + }, + "documentation":"

    A verdict expression is evaluated against verdicts of the email.

    " + }, + "RuleVerdictOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS" + ] + }, + "RuleVerdictToEvaluate":{ + "type":"structure", + "members":{ + "Analysis":{ + "shape":"Analysis", + "documentation":"

    The Add On ARN and its returned value to evaluate in a verdict condition expression.

    " + }, + "Attribute":{ + "shape":"RuleVerdictAttribute", + "documentation":"

    The email verdict attribute to evaluate in a string verdict expression.

    " + } + }, + "documentation":"

    The verdict to evaluate in a verdict condition expression.

    ", + "union":true + }, + "RuleVerdictValueList":{ + "type":"list", + "member":{"shape":"RuleVerdict"}, + "max":10, + "min":1 + }, + "Rules":{ + "type":"list", + "member":{"shape":"Rule"}, + "max":40, + "min":0 + }, + "S3Action":{ + "type":"structure", + "required":[ + "RoleArn", + "S3Bucket" + ], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

    A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified the bucket has been deleted.

    " + }, + "RoleArn":{ + "shape":"IamRoleArn", + "documentation":"

    The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.

    " + }, + "S3Bucket":{ + "shape":"S3Bucket", + "documentation":"

    The bucket name of the S3 bucket to write to.

    " + }, + "S3Prefix":{ + "shape":"S3Prefix", + "documentation":"

    The S3 prefix to use for the write to the s3 bucket.

    " + }, + "S3SseKmsKeyId":{ + "shape":"KmsKeyId", + "documentation":"

    The KMS Key ID to use to encrypt the message in S3.

    " + } + }, + "documentation":"

    Writes the MIME content of the email to an S3 bucket.

    " + }, + "S3Bucket":{ + "type":"string", + "max":62, + "min":1, + "pattern":"^[a-zA-Z0-9.-]+$" + }, + "S3ExportDestinationConfiguration":{ + "type":"structure", + "members":{ + "S3Location":{ + "shape":"S3Location", + "documentation":"

    The S3 location to deliver the exported email data.

    " + } + }, + "documentation":"

    The configuration for exporting email data to an Amazon S3 bucket.

    " + }, + "S3Location":{ + "type":"string", + "pattern":"^s3://[a-zA-Z0-9.-]{3,63}(/[a-zA-Z0-9!_.*'()/-]*)*$" + }, + "S3Prefix":{ + "type":"string", + "max":62, + "min":1, + "pattern":"^[a-zA-Z0-9!_.*'()/-]+$" + }, + "S3PresignedURL":{"type":"string"}, + "SearchId":{ + "type":"string", + "max":64, + "min":1 + }, + "SearchMaxResults":{ + "type":"integer", + "box":true, + "max":1000, + "min":0 + }, + "SearchState":{ + "type":"string", + "enum":[ + "QUEUED", + "RUNNING", + "COMPLETED", + "FAILED", + "CANCELLED" + ] + }, + "SearchStatus":{ + "type":"structure", + "members":{ + "CompletionTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the search completed (if finished).

    " + }, + "ErrorMessage":{ + "shape":"ErrorMessage", + "documentation":"

    An error message if the search failed.

    " + }, + "State":{ + "shape":"SearchState", + "documentation":"

    The current state of the search job.

    " + }, + "SubmissionTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The timestamp of when the search was submitted.

    " + } + }, + "documentation":"

    The current status of an archive search job.

    " + }, + "SearchSummary":{ + "type":"structure", + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

    The unique identifier of the search job.

    " + }, + "Status":{ + "shape":"SearchStatus", + "documentation":"

    The current status of the search job.

    " + } + }, + "documentation":"

    Summary details of an archive search job.

    " + }, + "SearchSummaryList":{ + "type":"list", + "member":{"shape":"SearchSummary"} + }, + "SecretArn":{ + "type":"string", + "pattern":"^arn:(aws|aws-cn|aws-us-gov):secretsmanager:[a-z0-9-]+:\\d{12}:secret:[a-zA-Z0-9/_+=,.@-]+$" + }, + "SendAction":{ + "type":"structure", + "required":["RoleArn"], + "members":{ + "ActionFailurePolicy":{ + "shape":"ActionFailurePolicy", + "documentation":"

    A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the caller does not have the permissions to call the sendRawEmail API.

    " + }, + "RoleArn":{ + "shape":"IamRoleArn", + "documentation":"

    The Amazon Resource Name (ARN) of the role to use for this action. This role must have access to the ses:SendRawEmail API.

    " + } + }, + "documentation":"

    Sends the email to the internet using the ses:SendRawEmail API.

    " + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

    Occurs when an operation exceeds a predefined service quota or limit.

    ", + "exception":true + }, + "SmtpPassword":{ + "type":"string", + "max":64, + "min":8, + "pattern":"^[A-Za-z0-9!@#$%^&*()_+\\-=\\[\\]{}|.,?]+$", + "sensitive":true + }, + "StartArchiveExportRequest":{ + "type":"structure", + "required":[ + "ArchiveId", + "ExportDestinationConfiguration", + "FromTimestamp", + "ToTimestamp" + ], + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

    The identifier of the archive to export emails from.

    " + }, + "ExportDestinationConfiguration":{ + "shape":"ExportDestinationConfiguration", + "documentation":"

    Details on where to deliver the exported email data.

    " + }, + "Filters":{ + "shape":"ArchiveFilters", + "documentation":"

    Criteria to filter which emails are included in the export.

    " + }, + "FromTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The start of the timestamp range to include emails from.

    " + }, + "MaxResults":{ + "shape":"ExportMaxResults", + "documentation":"

    The maximum number of email items to include in the export.

    " + }, + "ToTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The end of the timestamp range to include emails from.

    " + } + }, + "documentation":"

    The request to initiate an export of emails from an archive.

    " + }, + "StartArchiveExportResponse":{ + "type":"structure", + "members":{ + "ExportId":{ + "shape":"ExportId", + "documentation":"

    The unique identifier for the initiated export job.

    " + } + }, + "documentation":"

    The response from initiating an archive export.

    " + }, + "StartArchiveSearchRequest":{ + "type":"structure", + "required":[ + "ArchiveId", + "FromTimestamp", + "MaxResults", + "ToTimestamp" + ], + "members":{ + "ArchiveId":{ + "shape":"ArchiveId", + "documentation":"

    The identifier of the archive to search emails in.

    " + }, + "Filters":{ + "shape":"ArchiveFilters", + "documentation":"

    Criteria to filter which emails are included in the search results.

    " + }, + "FromTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The start timestamp of the range to search emails from.

    " + }, + "MaxResults":{ + "shape":"SearchMaxResults", + "documentation":"

    The maximum number of search results to return.

    " + }, + "ToTimestamp":{ + "shape":"Timestamp", + "documentation":"

    The end timestamp of the range to search emails from.

    " + } + }, + "documentation":"

    The request to initiate a search across emails in an archive.

    " + }, + "StartArchiveSearchResponse":{ + "type":"structure", + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

    The unique identifier for the initiated search job.

    " + } + }, + "documentation":"

    The response from initiating an archive search.

    " + }, + "StopArchiveExportRequest":{ + "type":"structure", + "required":["ExportId"], + "members":{ + "ExportId":{ + "shape":"ExportId", + "documentation":"

    The identifier of the export job to stop.

    " + } + }, + "documentation":"

    The request to stop an in-progress archive export job.

    " + }, + "StopArchiveExportResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"

    The response indicating if the request to stop the export job succeeded.

    On success, returns an HTTP 200 status code. On failure, returns an error message.

    " + }, + "StopArchiveSearchRequest":{ + "type":"structure", + "required":["SearchId"], + "members":{ + "SearchId":{ + "shape":"SearchId", + "documentation":"

    The identifier of the search job to stop.

    " + } + }, + "documentation":"

    The request to stop an in-progress archive search job.

    " + }, + "StopArchiveSearchResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"

    The response indicating if the request to stop the search job succeeded.

    On success, returns an HTTP 200 status code. On failure, returns an error message.

    " + }, + "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "StringValueList":{ + "type":"list", + "member":{"shape":"String"}, + "max":10, + "min":1 + }, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{ + "shape":"TagKey", + "documentation":"

    The key of the key-value tag.

    " + }, + "Value":{ + "shape":"TagValue", + "documentation":"

    The value of the key-value tag.

    " + } + }, + "documentation":"

    A key-value pair (the value is optional), that you can define and assign to Amazon Web Services resources.

    " + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[a-zA-Z0-9/_\\+=\\.:@\\-]+$", + "sensitive":true + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{ + "shape":"TaggableResourceArn", + "documentation":"

    The Amazon Resource Name (ARN) of the resource that you want to tag.

    " + }, + "Tags":{ + "shape":"TagList", + "documentation":"

    The tags used to organize, track, or control access for the resource. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

    " + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^[a-zA-Z0-9/_\\+=\\.:@\\-]*$", + "sensitive":true + }, + "TaggableResourceArn":{ + "type":"string", + "max":1011, + "min":20, + "pattern":"^arn:aws(|-cn|-us-gov):ses:[a-z0-9-]{1,20}:[0-9]{12}:(mailmanager-|addon-).+$" + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

    Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.

    ", + "exception":true + }, + "Timestamp":{"type":"timestamp"}, + "TrafficPolicy":{ + "type":"structure", + "required":[ + "DefaultAction", + "TrafficPolicyId", + "TrafficPolicyName" + ], + "members":{ + "DefaultAction":{ + "shape":"AcceptAction", + "documentation":"

    Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

    " + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of the traffic policy resource.

    " + }, + "TrafficPolicyName":{ + "shape":"TrafficPolicyName", + "documentation":"

    A user-friendly name of the traffic policy resource.

    " + } + }, + "documentation":"

    The structure of a traffic policy resource which is a container for policy statements.

    " + }, + "TrafficPolicyArn":{"type":"string"}, + "TrafficPolicyId":{ + "type":"string", + "max":100, + "min":1 + }, + "TrafficPolicyList":{ + "type":"list", + "member":{"shape":"TrafficPolicy"} + }, + "TrafficPolicyName":{ + "type":"string", + "max":63, + "min":3, + "pattern":"^[A-Za-z0-9_\\-]+$" + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{ + "shape":"TaggableResourceArn", + "documentation":"

    The Amazon Resource Name (ARN) of the resource that you want to untag.

    " + }, + "TagKeys":{ + "shape":"TagKeyList", + "documentation":"

    The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

    " + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateArchiveRequest":{ + "type":"structure", + "required":["ArchiveId"], + "members":{ + "ArchiveId":{ + "shape":"ArchiveIdString", + "documentation":"

    The identifier of the archive to update.

    " + }, + "ArchiveName":{ + "shape":"ArchiveNameString", + "documentation":"

    A new, unique name for the archive.

    " + }, + "Retention":{ + "shape":"ArchiveRetention", + "documentation":"

    A new retention period for emails in the archive.

    " + } + }, + "documentation":"

    The request to update properties of an existing email archive.

    " + }, + "UpdateArchiveResponse":{ + "type":"structure", + "members":{ + }, + "documentation":"

    The response indicating if the archive update succeeded or failed.

    On success, returns an HTTP 200 status code. On failure, returns an error message.

    " + }, + "UpdateIngressPointRequest":{ + "type":"structure", + "required":["IngressPointId"], + "members":{ + "IngressPointConfiguration":{ + "shape":"IngressPointConfiguration", + "documentation":"

    If you choose an Authenticated ingress endpoint, you must configure either an SMTP password or a secret ARN.

    " + }, + "IngressPointId":{ + "shape":"IngressPointId", + "documentation":"

    The identifier for the ingress endpoint you want to update.

    " + }, + "IngressPointName":{ + "shape":"IngressPointName", + "documentation":"

    A user friendly name for the ingress endpoint resource.

    " + }, + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of an existing rule set that you attach to an ingress endpoint resource.

    " + }, + "StatusToUpdate":{ + "shape":"IngressPointStatusToUpdate", + "documentation":"

    The update status of an ingress endpoint.

    " + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of an existing traffic policy that you attach to an ingress endpoint resource.

    " + } + } + }, + "UpdateIngressPointResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateRelayRequest":{ + "type":"structure", + "required":["RelayId"], + "members":{ + "Authentication":{ + "shape":"RelayAuthentication", + "documentation":"

    Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored.

    " + }, + "RelayId":{ + "shape":"RelayId", + "documentation":"

    The unique relay identifier.

    " + }, + "RelayName":{ + "shape":"RelayName", + "documentation":"

    The name of the relay resource.

    " + }, + "ServerName":{ + "shape":"RelayServerName", + "documentation":"

    The destination relay server address.

    " + }, + "ServerPort":{ + "shape":"RelayServerPort", + "documentation":"

    The destination relay server port.

    " + } + } + }, + "UpdateRelayResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateRuleSetRequest":{ + "type":"structure", + "required":["RuleSetId"], + "members":{ + "RuleSetId":{ + "shape":"RuleSetId", + "documentation":"

    The identifier of a rule set you want to update.

    " + }, + "RuleSetName":{ + "shape":"RuleSetName", + "documentation":"

    A user-friendly name for the rule set resource.

    " + }, + "Rules":{ + "shape":"Rules", + "documentation":"

    A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.

    " + } + } + }, + "UpdateRuleSetResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateTrafficPolicyRequest":{ + "type":"structure", + "required":["TrafficPolicyId"], + "members":{ + "DefaultAction":{ + "shape":"AcceptAction", + "documentation":"

    Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements

    " + }, + "MaxMessageSizeBytes":{ + "shape":"MaxMessageSizeBytes", + "documentation":"

    The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.

    " + }, + "PolicyStatements":{ + "shape":"PolicyStatementList", + "documentation":"

    The list of conditions to be updated for filtering email traffic.

    " + }, + "TrafficPolicyId":{ + "shape":"TrafficPolicyId", + "documentation":"

    The identifier of the traffic policy that you want to update.

    " + }, + "TrafficPolicyName":{ + "shape":"TrafficPolicyName", + "documentation":"

    A user-friendly name for the traffic policy resource.

    " + } + } + }, + "UpdateTrafficPolicyResponse":{ + "type":"structure", + "members":{ + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

    The request validation has failed. For details, see the accompanying error message.

    ", + "exception":true + } + }, + "documentation":"

    AWS SES Mail Manager API

    AWS SES Mail Manager API contains operations and data types that comprise the Mail Manager feature of Amazon Simple Email Service.

    Mail Manager is a set of Amazon SES email gateway features designed to help you strengthen your organization's email infrastructure, simplify email workflow management, and streamline email compliance control. To learn more, see the Mail Manager chapter in the Amazon SES Developer Guide.

    " +} diff --git a/tools/code-generation/api-descriptions/pi-2018-02-27.normal.json b/tools/code-generation/api-descriptions/pi-2018-02-27.normal.json index 5d997fdb284..3d8397a0f4a 100644 --- a/tools/code-generation/api-descriptions/pi-2018-02-27.normal.json +++ b/tools/code-generation/api-descriptions/pi-2018-02-27.normal.json @@ -5,6 +5,7 @@ "endpointPrefix":"pi", "jsonVersion":"1.1", "protocol":"json", + "protocols":["json"], "serviceAbbreviation":"AWS PI", "serviceFullName":"AWS Performance Insights", "serviceId":"PI", @@ -217,7 +218,7 @@ }, "AdditionalMetricsList":{ "type":"list", - "member":{"shape":"RequestString"}, + "member":{"shape":"SanitizedString"}, "max":30, "min":1 }, @@ -319,6 +320,12 @@ "FAILED" ] }, + "AuthorizedActionsList":{ + "type":"list", + "member":{"shape":"FineGrainedAction"}, + "max":3, + "min":0 + }, "Boolean":{"type":"boolean"}, "ContextType":{ "type":"string", @@ -559,11 +566,11 @@ "required":["Group"], "members":{ "Group":{ - "shape":"RequestString", + "shape":"SanitizedString", "documentation":"

    The name of the dimension group. Valid values are as follows:

    • db - The name of the database to which the client is connected. The following values are permitted:

      • Aurora PostgreSQL

      • Amazon RDS PostgreSQL

      • Aurora MySQL

      • Amazon RDS MySQL

      • Amazon RDS MariaDB

      • Amazon DocumentDB

    • db.application - The name of the application that is connected to the database. The following values are permitted:

      • Aurora PostgreSQL

      • Amazon RDS PostgreSQL

      • Amazon DocumentDB

    • db.host - The host name of the connected client (all engines).

    • db.query - The query that is currently running (only Amazon DocumentDB).

    • db.query_tokenized - The digest query (only Amazon DocumentDB).

    • db.session_type - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL).

    • db.sql - The text of the SQL statement that is currently running (all engines except Amazon DocumentDB).

    • db.sql_tokenized - The SQL digest (all engines except Amazon DocumentDB).

    • db.user - The user logged in to the database (all engines except Amazon DocumentDB).

    • db.wait_event - The event for which the database backend is waiting (all engines except Amazon DocumentDB).

    • db.wait_event_type - The type of event for which the database backend is waiting (all engines except Amazon DocumentDB).

    • db.wait_state - The event for which the database backend is waiting (only Amazon DocumentDB).

    " }, "Dimensions":{ - "shape":"RequestStringList", + "shape":"SanitizedStringList", "documentation":"

    A list of specific dimensions from a dimension group. If this parameter is not present, then it signifies that all of the dimensions in the group were requested, or are present in the response.

    Valid values for elements in the Dimensions array are:

    • db.application.name - The name of the application that is connected to the database. Valid values are as follows:

      • Aurora PostgreSQL

      • Amazon RDS PostgreSQL

      • Amazon DocumentDB

    • db.host.id - The host ID of the connected client (all engines).

    • db.host.name - The host name of the connected client (all engines).

    • db.name - The name of the database to which the client is connected. Valid values are as follows:

      • Aurora PostgreSQL

      • Amazon RDS PostgreSQL

      • Aurora MySQL

      • Amazon RDS MySQL

      • Amazon RDS MariaDB

      • Amazon DocumentDB

    • db.query.id - The query ID generated by Performance Insights (only Amazon DocumentDB).

    • db.query.db_id - The query ID generated by the database (only Amazon DocumentDB).

    • db.query.statement - The text of the query that is being run (only Amazon DocumentDB).

    • db.query.tokenized_id

    • db.query.tokenized.id - The query digest ID generated by Performance Insights (only Amazon DocumentDB).

    • db.query.tokenized.db_id - The query digest ID generated by Performance Insights (only Amazon DocumentDB).

    • db.query.tokenized.statement - The text of the query digest (only Amazon DocumentDB).

    • db.session_type.name - The type of the current session (only Amazon DocumentDB).

    • db.sql.id - The hash of the full, non-tokenized SQL statement generated by Performance Insights (all engines except Amazon DocumentDB).

    • db.sql.db_id - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with pi- (all engines except Amazon DocumentDB).

    • db.sql.statement - The full text of the SQL statement that is running, as in SELECT * FROM employees (all engines except Amazon DocumentDB)

    • db.sql.tokenized_id

    • db.sql_tokenized.id - The hash of the SQL digest generated by Performance Insights (all engines except Amazon DocumentDB). In the console, db.sql_tokenized.id is called the Support ID because Amazon Web Services Support can look at this data to help you troubleshoot database issues.

    • db.sql_tokenized.db_id - Either the native database ID used to refer to the SQL statement, or a synthetic ID such as pi-2372568224 that Performance Insights generates if the native database ID isn't available (all engines except Amazon DocumentDB).

    • db.sql_tokenized.statement - The text of the SQL digest, as in SELECT * FROM employees WHERE employee_id = ? (all engines except Amazon DocumentDB)

    • db.user.id - The ID of the user logged in to the database (all engines except Amazon DocumentDB).

    • db.user.name - The name of the user logged in to the database (all engines except Amazon DocumentDB).

    • db.wait_event.name - The event for which the backend is waiting (all engines except Amazon DocumentDB).

    • db.wait_event.type - The type of event for which the backend is waiting (all engines except Amazon DocumentDB).

    • db.wait_event_type.name - The name of the event type for which the backend is waiting (all engines except Amazon DocumentDB).

    • db.wait_state.name - The event for which the backend is waiting (only Amazon DocumentDB).

    " }, "Limit":{ @@ -646,7 +653,7 @@ }, "DimensionsMetricList":{ "type":"list", - "member":{"shape":"RequestString"}, + "member":{"shape":"SanitizedString"}, "max":5, "min":1 }, @@ -678,6 +685,14 @@ "UNKNOWN" ] }, + "FineGrainedAction":{ + "type":"string", + "enum":[ + "DescribeDimensionKeys", + "GetDimensionKeyDetails", + "GetResourceMetrics" + ] + }, "GetDimensionKeyDetailsRequest":{ "type":"structure", "required":[ @@ -972,6 +987,10 @@ "NextToken":{ "shape":"NextToken", "documentation":"

    An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

    " + }, + "AuthorizedActions":{ + "shape":"AuthorizedActionsList", + "documentation":"

    The actions to discover the dimensions you are authorized to access. If you specify multiple actions, then the response will contain the dimensions common for all the actions.

    When you don't specify this request parameter or provide an empty list, the response contains all the available dimensions for the target database engine whether or not you are authorized to access them.

    " } } }, @@ -1152,7 +1171,7 @@ "required":["Metric"], "members":{ "Metric":{ - "shape":"RequestString", + "shape":"SanitizedString", "documentation":"

    The name of a Performance Insights metric to be measured.

    Valid values for Metric are:

    If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.

    " }, "GroupBy":{ @@ -1168,7 +1187,7 @@ }, "MetricQueryFilterMap":{ "type":"map", - "key":{"shape":"RequestString"}, + "key":{"shape":"SanitizedString"}, "value":{"shape":"RequestString"} }, "MetricQueryList":{ @@ -1179,7 +1198,7 @@ }, "MetricTypeList":{ "type":"list", - "member":{"shape":"RequestString"} + "member":{"shape":"SanitizedString"} }, "MetricValuesList":{ "type":"list", @@ -1252,15 +1271,9 @@ "min":0, "pattern":".*\\S.*" }, - "RequestStringList":{ - "type":"list", - "member":{"shape":"RequestString"}, - "max":10, - "min":1 - }, "RequestedDimensionList":{ "type":"list", - "member":{"shape":"RequestString"}, + "member":{"shape":"SanitizedString"}, "max":10, "min":1 }, @@ -1316,6 +1329,19 @@ "type":"list", "member":{"shape":"ResponseResourceMetric"} }, + "SanitizedString":{ + "type":"string", + "documentation":"A generic string type that forbids characters that could expose our service (or services downstream) to security risks around injections.", + "max":256, + "min":0, + "pattern":"^[a-zA-Z0-9-_\\.:/*)( ]+$" + }, + "SanitizedStringList":{ + "type":"list", + "member":{"shape":"SanitizedString"}, + "max":10, + "min":1 + }, "ServiceType":{ "type":"string", "enum":[ diff --git a/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json b/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json index cd54c74c836..ef12d953bbd 100644 --- a/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json +++ b/tools/code-generation/api-descriptions/rds-2014-10-31.normal.json @@ -4482,7 +4482,7 @@ }, "LicenseModel":{ "shape":"String", - "documentation":"

    The license model information for this DB instance.

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid Values:

    • RDS for Db2 - bring-your-own-license

    • RDS for MariaDB - general-public-license

    • RDS for Microsoft SQL Server - license-included

    • RDS for MySQL - general-public-license

    • RDS for Oracle - bring-your-own-license | license-included

    • RDS for PostgreSQL - postgresql-license

    " + "documentation":"

    The license model information for this DB instance.

    License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

    The default for RDS for Db2 is bring-your-own-license.

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid Values:

    • RDS for Db2 - bring-your-own-license | marketplace-license

    • RDS for MariaDB - general-public-license

    • RDS for Microsoft SQL Server - license-included

    • RDS for MySQL - general-public-license

    • RDS for Oracle - bring-your-own-license | license-included

    • RDS for PostgreSQL - postgresql-license

    " }, "Iops":{ "shape":"IntegerOptional", @@ -6794,7 +6794,7 @@ }, "LicenseModel":{ "shape":"String", - "documentation":"

    The license model information for this DB instance. This setting doesn't apply to RDS Custom DB instances.

    " + "documentation":"

    The license model information for this DB instance. This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    " }, "Iops":{ "shape":"IntegerOptional", @@ -15216,7 +15216,7 @@ }, "LicenseModel":{ "shape":"String", - "documentation":"

    License model information for the restored DB instance.

    This setting doesn't apply to RDS Custom.

    Default: Same as source.

    Valid Values: license-included | bring-your-own-license | general-public-license

    " + "documentation":"

    License model information for the restored DB instance.

    License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid Values:

    • RDS for Db2 - bring-your-own-license | marketplace-license

    • RDS for MariaDB - general-public-license

    • RDS for Microsoft SQL Server - license-included

    • RDS for MySQL - general-public-license

    • RDS for Oracle - bring-your-own-license | license-included

    • RDS for PostgreSQL - postgresql-license

    Default: Same as the source.

    " }, "DBName":{ "shape":"String", @@ -15626,7 +15626,7 @@ }, "LicenseModel":{ "shape":"String", - "documentation":"

    The license model information for the restored DB instance.

    This setting doesn't apply to RDS Custom.

    Valid Values: license-included | bring-your-own-license | general-public-license

    Default: Same as the source.

    " + "documentation":"

    The license model information for the restored DB instance.

    License models for RDS for Db2 require additional configuration. The Bring Your Own License (BYOL) model requires a custom parameter group. The Db2 license through Amazon Web Services Marketplace model requires an Amazon Web Services Marketplace subscription. For more information, see RDS for Db2 licensing options in the Amazon RDS User Guide.

    This setting doesn't apply to Amazon Aurora or RDS Custom DB instances.

    Valid Values:

    • RDS for Db2 - bring-your-own-license | marketplace-license

    • RDS for MariaDB - general-public-license

    • RDS for Microsoft SQL Server - license-included

    • RDS for MySQL - general-public-license

    • RDS for Oracle - bring-your-own-license | license-included

    • RDS for PostgreSQL - postgresql-license

    Default: Same as the source.

    " }, "DBName":{ "shape":"String", diff --git a/tools/code-generation/api-descriptions/storagegateway-2013-06-30.normal.json b/tools/code-generation/api-descriptions/storagegateway-2013-06-30.normal.json index f86ef02157a..23b61383f86 100644 --- a/tools/code-generation/api-descriptions/storagegateway-2013-06-30.normal.json +++ b/tools/code-generation/api-descriptions/storagegateway-2013-06-30.normal.json @@ -1295,7 +1295,7 @@ }, "GatewayTimezone":{ "shape":"GatewayTimezone", - "documentation":"

    A value that indicates the time zone you want to set for the gateway. The time zone is of the format \"GMT-hr:mm\" or \"GMT+hr:mm\". For example, GMT-4:00 indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The time zone is used, for example, for scheduling snapshots and your gateway's maintenance schedule.

    " + "documentation":"

    A value that indicates the time zone you want to set for the gateway. The time zone is of the format \"GMT\", \"GMT-hr:mm\", or \"GMT+hr:mm\". For example, GMT indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The time zone is used, for example, for scheduling snapshots and your gateway's maintenance schedule.

    " }, "GatewayRegion":{ "shape":"RegionId", @@ -1303,7 +1303,7 @@ }, "GatewayType":{ "shape":"GatewayType", - "documentation":"

    A value that defines the type of gateway to activate. The type specified is critical to all later functions of the gateway and cannot be changed after activation. The default value is CACHED.

    Valid Values: STORED | CACHED | VTL | VTL_SNOW | FILE_S3 | FILE_FSX_SMB

    " + "documentation":"

    A value that defines the type of gateway to activate. The type specified is critical to all later functions of the gateway and cannot be changed after activation. The default value is CACHED.

    Valid Values: STORED | CACHED | VTL | FILE_S3 | FILE_FSX_SMB

    " }, "TapeDriveType":{ "shape":"TapeDriveType", @@ -2921,7 +2921,7 @@ }, "HostEnvironment":{ "shape":"HostEnvironment", - "documentation":"

    The type of hardware or software platform on which the gateway is running.

    " + "documentation":"

    The type of hardware or software platform on which the gateway is running.

    Tape Gateway is no longer available on Snow Family devices.

    " }, "EndpointType":{ "shape":"EndpointType", @@ -3056,7 +3056,7 @@ }, "SMBSecurityStrategy":{ "shape":"SMBSecurityStrategy", - "documentation":"

    The type of security strategy that was specified for file gateway.

    • ClientSpecified: If you use this option, requests are established based on what is negotiated by the client. This option is recommended when you want to maximize compatibility across different clients in your environment. Only supported for S3 File Gateways.

    • MandatorySigning: If you use this option, file gateway only allows connections from SMBv2 or SMBv3 clients that have signing enabled. This option works with SMB clients on Microsoft Windows Vista, Windows Server 2008 or newer.

    • MandatoryEncryption: If you use this option, file gateway only allows connections from SMBv3 clients that have encryption enabled. This option is highly recommended for environments that handle sensitive data. This option works with SMB clients on Microsoft Windows 8, Windows Server 2012 or newer.

    " + "documentation":"

    The type of security strategy that was specified for file gateway.

    • ClientSpecified: If you choose this option, requests are established based on what is negotiated by the client. This option is recommended when you want to maximize compatibility across different clients in your environment. Supported only for S3 File Gateway.

    • MandatorySigning: If you use this option, File Gateway only allows connections from SMBv2 or SMBv3 clients that have signing turned on. This option works with SMB clients on Microsoft Windows Vista, Windows Server 2008, or later.

    • MandatoryEncryption: If you use this option, File Gateway only allows connections from SMBv3 clients that have encryption turned on. Both 256-bit and 128-bit algorithms are allowed. This option is recommended for environments that handle sensitive data. It works with SMB clients on Microsoft Windows 8, Windows Server 2012, or later.

    • EnforceEncryption: If you use this option, File Gateway only allows connections from SMBv3 clients that use 256-bit AES encryption algorithms. 128-bit algorithms are not allowed. This option is recommended for environments that handle sensitive data. It works with SMB clients on Microsoft Windows 8, Windows Server 2012, or later.

    " }, "FileSharesVisible":{ "shape":"Boolean", @@ -3803,7 +3803,7 @@ }, "HostEnvironment":{ "shape":"HostEnvironment", - "documentation":"

    The type of hardware or software platform on which the gateway is running.

    " + "documentation":"

    The type of hardware or software platform on which the gateway is running.

    Tape Gateway is no longer available on Snow Family devices.

    " }, "HostEnvironmentId":{ "shape":"HostEnvironmentId", @@ -4598,7 +4598,7 @@ }, "FolderList":{ "shape":"FolderList", - "documentation":"

    A comma-separated list of the paths of folders to refresh in the cache. The default is [\"/\"]. The default refreshes objects and folders at the root of the Amazon S3 bucket. If Recursive is set to true, the entire S3 bucket that the file share has access to is refreshed.

    " + "documentation":"

    A comma-separated list of the paths of folders to refresh in the cache. The default is [\"/\"]. The default refreshes objects and folders at the root of the Amazon S3 bucket. If Recursive is set to true, the entire S3 bucket that the file share has access to is refreshed.

    Do not include / when specifying folder names. For example, you would specify samplefolder rather than samplefolder/.

    " }, "Recursive":{ "shape":"Boolean", @@ -4860,7 +4860,8 @@ "enum":[ "ClientSpecified", "MandatorySigning", - "MandatoryEncryption" + "MandatoryEncryption", + "MandatoryEncryptionNoAes128" ] }, "ServiceUnavailableError":{ diff --git a/tools/code-generation/endpoints/mailmanager-2023-10-17.endpoint-rule-set.json b/tools/code-generation/endpoints/mailmanager-2023-10-17.endpoint-rule-set.json new file mode 100644 index 00000000000..17751d95d6c --- /dev/null +++ b/tools/code-generation/endpoints/mailmanager-2023-10-17.endpoint-rule-set.json @@ -0,0 +1,350 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://mail-manager-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + }, + true + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://mail-manager-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "rules": [ + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://mail-manager.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ], + "type": "tree" + }, + { + "conditions": [], + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://mail-manager.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ], + "type": "tree" + } + ], + "type": "tree" + } + ], + "type": "tree" + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ], + "type": "tree" + } + ] +} \ No newline at end of file diff --git a/tools/code-generation/endpoints/mailmanager-2023-10-17.endpoint-tests.json b/tools/code-generation/endpoints/mailmanager-2023-10-17.endpoint-tests.json new file mode 100644 index 00000000000..10683c5d595 --- /dev/null +++ b/tools/code-generation/endpoints/mailmanager-2023-10-17.endpoint-tests.json @@ -0,0 +1,314 @@ +{ + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://mail-manager.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" +} \ No newline at end of file