/** * 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 IAM { namespace Model { /** */ class CreateServiceLinkedRoleRequest : public IAMRequest { public: AWS_IAM_API CreateServiceLinkedRoleRequest(); // 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 "CreateServiceLinkedRole"; } AWS_IAM_API Aws::String SerializePayload() const override; protected: AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The service principal for the Amazon Web Services service to which this role * is attached. You use a string similar to a URL but without the http:// in front. * For example: elasticbeanstalk.amazonaws.com.

Service * principals are unique and case-sensitive. To find the exact service principal * for your service-linked role, see Amazon * Web Services services that work with IAM in the IAM User Guide. Look * for the services that have Yes in the Service-Linked Role column. * Choose the Yes link to view the service-linked role documentation for * that service.

*/ inline const Aws::String& GetAWSServiceName() const{ return m_aWSServiceName; } /** *

The service principal for the Amazon Web Services service to which this role * is attached. You use a string similar to a URL but without the http:// in front. * For example: elasticbeanstalk.amazonaws.com.

Service * principals are unique and case-sensitive. To find the exact service principal * for your service-linked role, see Amazon * Web Services services that work with IAM in the IAM User Guide. Look * for the services that have Yes in the Service-Linked Role column. * Choose the Yes link to view the service-linked role documentation for * that service.

*/ inline bool AWSServiceNameHasBeenSet() const { return m_aWSServiceNameHasBeenSet; } /** *

The service principal for the Amazon Web Services service to which this role * is attached. You use a string similar to a URL but without the http:// in front. * For example: elasticbeanstalk.amazonaws.com.

Service * principals are unique and case-sensitive. To find the exact service principal * for your service-linked role, see Amazon * Web Services services that work with IAM in the IAM User Guide. Look * for the services that have Yes in the Service-Linked Role column. * Choose the Yes link to view the service-linked role documentation for * that service.

*/ inline void SetAWSServiceName(const Aws::String& value) { m_aWSServiceNameHasBeenSet = true; m_aWSServiceName = value; } /** *

The service principal for the Amazon Web Services service to which this role * is attached. You use a string similar to a URL but without the http:// in front. * For example: elasticbeanstalk.amazonaws.com.

Service * principals are unique and case-sensitive. To find the exact service principal * for your service-linked role, see Amazon * Web Services services that work with IAM in the IAM User Guide. Look * for the services that have Yes in the Service-Linked Role column. * Choose the Yes link to view the service-linked role documentation for * that service.

*/ inline void SetAWSServiceName(Aws::String&& value) { m_aWSServiceNameHasBeenSet = true; m_aWSServiceName = std::move(value); } /** *

The service principal for the Amazon Web Services service to which this role * is attached. You use a string similar to a URL but without the http:// in front. * For example: elasticbeanstalk.amazonaws.com.

Service * principals are unique and case-sensitive. To find the exact service principal * for your service-linked role, see Amazon * Web Services services that work with IAM in the IAM User Guide. Look * for the services that have Yes in the Service-Linked Role column. * Choose the Yes link to view the service-linked role documentation for * that service.

*/ inline void SetAWSServiceName(const char* value) { m_aWSServiceNameHasBeenSet = true; m_aWSServiceName.assign(value); } /** *

The service principal for the Amazon Web Services service to which this role * is attached. You use a string similar to a URL but without the http:// in front. * For example: elasticbeanstalk.amazonaws.com.

Service * principals are unique and case-sensitive. To find the exact service principal * for your service-linked role, see Amazon * Web Services services that work with IAM in the IAM User Guide. Look * for the services that have Yes in the Service-Linked Role column. * Choose the Yes link to view the service-linked role documentation for * that service.

*/ inline CreateServiceLinkedRoleRequest& WithAWSServiceName(const Aws::String& value) { SetAWSServiceName(value); return *this;} /** *

The service principal for the Amazon Web Services service to which this role * is attached. You use a string similar to a URL but without the http:// in front. * For example: elasticbeanstalk.amazonaws.com.

Service * principals are unique and case-sensitive. To find the exact service principal * for your service-linked role, see Amazon * Web Services services that work with IAM in the IAM User Guide. Look * for the services that have Yes in the Service-Linked Role column. * Choose the Yes link to view the service-linked role documentation for * that service.

*/ inline CreateServiceLinkedRoleRequest& WithAWSServiceName(Aws::String&& value) { SetAWSServiceName(std::move(value)); return *this;} /** *

The service principal for the Amazon Web Services service to which this role * is attached. You use a string similar to a URL but without the http:// in front. * For example: elasticbeanstalk.amazonaws.com.

Service * principals are unique and case-sensitive. To find the exact service principal * for your service-linked role, see Amazon * Web Services services that work with IAM in the IAM User Guide. Look * for the services that have Yes in the Service-Linked Role column. * Choose the Yes link to view the service-linked role documentation for * that service.

*/ inline CreateServiceLinkedRoleRequest& WithAWSServiceName(const char* value) { SetAWSServiceName(value); return *this;} /** *

The description of the role.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the role.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the role.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the role.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the role.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the role.

*/ inline CreateServiceLinkedRoleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the role.

*/ inline CreateServiceLinkedRoleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the role.

*/ inline CreateServiceLinkedRoleRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A string that you provide, which is combined with the service-provided * prefix to form the complete role name. If you make multiple requests for the * same service, then you must supply a different CustomSuffix for * each request. Otherwise the request fails with a duplicate role name error. For * example, you could add -1 or -debug to the suffix.

*

Some services do not support the CustomSuffix parameter. If you * provide an optional suffix and the operation fails, try the operation again * without the suffix.

*/ inline const Aws::String& GetCustomSuffix() const{ return m_customSuffix; } /** *

A string that you provide, which is combined with the service-provided * prefix to form the complete role name. If you make multiple requests for the * same service, then you must supply a different CustomSuffix for * each request. Otherwise the request fails with a duplicate role name error. For * example, you could add -1 or -debug to the suffix.

*

Some services do not support the CustomSuffix parameter. If you * provide an optional suffix and the operation fails, try the operation again * without the suffix.

*/ inline bool CustomSuffixHasBeenSet() const { return m_customSuffixHasBeenSet; } /** *

A string that you provide, which is combined with the service-provided * prefix to form the complete role name. If you make multiple requests for the * same service, then you must supply a different CustomSuffix for * each request. Otherwise the request fails with a duplicate role name error. For * example, you could add -1 or -debug to the suffix.

*

Some services do not support the CustomSuffix parameter. If you * provide an optional suffix and the operation fails, try the operation again * without the suffix.

*/ inline void SetCustomSuffix(const Aws::String& value) { m_customSuffixHasBeenSet = true; m_customSuffix = value; } /** *

A string that you provide, which is combined with the service-provided * prefix to form the complete role name. If you make multiple requests for the * same service, then you must supply a different CustomSuffix for * each request. Otherwise the request fails with a duplicate role name error. For * example, you could add -1 or -debug to the suffix.

*

Some services do not support the CustomSuffix parameter. If you * provide an optional suffix and the operation fails, try the operation again * without the suffix.

*/ inline void SetCustomSuffix(Aws::String&& value) { m_customSuffixHasBeenSet = true; m_customSuffix = std::move(value); } /** *

A string that you provide, which is combined with the service-provided * prefix to form the complete role name. If you make multiple requests for the * same service, then you must supply a different CustomSuffix for * each request. Otherwise the request fails with a duplicate role name error. For * example, you could add -1 or -debug to the suffix.

*

Some services do not support the CustomSuffix parameter. If you * provide an optional suffix and the operation fails, try the operation again * without the suffix.

*/ inline void SetCustomSuffix(const char* value) { m_customSuffixHasBeenSet = true; m_customSuffix.assign(value); } /** *

A string that you provide, which is combined with the service-provided * prefix to form the complete role name. If you make multiple requests for the * same service, then you must supply a different CustomSuffix for * each request. Otherwise the request fails with a duplicate role name error. For * example, you could add -1 or -debug to the suffix.

*

Some services do not support the CustomSuffix parameter. If you * provide an optional suffix and the operation fails, try the operation again * without the suffix.

*/ inline CreateServiceLinkedRoleRequest& WithCustomSuffix(const Aws::String& value) { SetCustomSuffix(value); return *this;} /** *

A string that you provide, which is combined with the service-provided * prefix to form the complete role name. If you make multiple requests for the * same service, then you must supply a different CustomSuffix for * each request. Otherwise the request fails with a duplicate role name error. For * example, you could add -1 or -debug to the suffix.

*

Some services do not support the CustomSuffix parameter. If you * provide an optional suffix and the operation fails, try the operation again * without the suffix.

*/ inline CreateServiceLinkedRoleRequest& WithCustomSuffix(Aws::String&& value) { SetCustomSuffix(std::move(value)); return *this;} /** *

A string that you provide, which is combined with the service-provided * prefix to form the complete role name. If you make multiple requests for the * same service, then you must supply a different CustomSuffix for * each request. Otherwise the request fails with a duplicate role name error. For * example, you could add -1 or -debug to the suffix.

*

Some services do not support the CustomSuffix parameter. If you * provide an optional suffix and the operation fails, try the operation again * without the suffix.

*/ inline CreateServiceLinkedRoleRequest& WithCustomSuffix(const char* value) { SetCustomSuffix(value); return *this;} private: Aws::String m_aWSServiceName; bool m_aWSServiceNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_customSuffix; bool m_customSuffixHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws