/** * 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 SES { namespace Model { /** *

Represents a request to return the requested sending authorization policies * for an identity. Sending authorization is an Amazon SES feature that enables you * to authorize other senders to use your identities. For information, see the Amazon * SES Developer Guide.

See Also:

AWS * API Reference

*/ class GetIdentityPoliciesRequest : public SESRequest { public: AWS_SES_API GetIdentityPoliciesRequest(); // 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 "GetIdentityPolicies"; } AWS_SES_API Aws::String SerializePayload() const override; protected: AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identity for which the policies will be retrieved. You can specify an * identity by using its name or by using its Amazon Resource Name (ARN). Examples: * user@example.com, example.com, * arn:aws:ses:us-east-1:123456789012:identity/example.com.

To * successfully call this API, you must own the identity.

*/ inline const Aws::String& GetIdentity() const{ return m_identity; } /** *

The identity for which the policies will be retrieved. You can specify an * identity by using its name or by using its Amazon Resource Name (ARN). Examples: * user@example.com, example.com, * arn:aws:ses:us-east-1:123456789012:identity/example.com.

To * successfully call this API, you must own the identity.

*/ inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; } /** *

The identity for which the policies will be retrieved. You can specify an * identity by using its name or by using its Amazon Resource Name (ARN). Examples: * user@example.com, example.com, * arn:aws:ses:us-east-1:123456789012:identity/example.com.

To * successfully call this API, you must own the identity.

*/ inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; } /** *

The identity for which the policies will be retrieved. You can specify an * identity by using its name or by using its Amazon Resource Name (ARN). Examples: * user@example.com, example.com, * arn:aws:ses:us-east-1:123456789012:identity/example.com.

To * successfully call this API, you must own the identity.

*/ inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); } /** *

The identity for which the policies will be retrieved. You can specify an * identity by using its name or by using its Amazon Resource Name (ARN). Examples: * user@example.com, example.com, * arn:aws:ses:us-east-1:123456789012:identity/example.com.

To * successfully call this API, you must own the identity.

*/ inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); } /** *

The identity for which the policies will be retrieved. You can specify an * identity by using its name or by using its Amazon Resource Name (ARN). Examples: * user@example.com, example.com, * arn:aws:ses:us-east-1:123456789012:identity/example.com.

To * successfully call this API, you must own the identity.

*/ inline GetIdentityPoliciesRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;} /** *

The identity for which the policies will be retrieved. You can specify an * identity by using its name or by using its Amazon Resource Name (ARN). Examples: * user@example.com, example.com, * arn:aws:ses:us-east-1:123456789012:identity/example.com.

To * successfully call this API, you must own the identity.

*/ inline GetIdentityPoliciesRequest& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;} /** *

The identity for which the policies will be retrieved. You can specify an * identity by using its name or by using its Amazon Resource Name (ARN). Examples: * user@example.com, example.com, * arn:aws:ses:us-east-1:123456789012:identity/example.com.

To * successfully call this API, you must own the identity.

*/ inline GetIdentityPoliciesRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;} /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline const Aws::Vector& GetPolicyNames() const{ return m_policyNames; } /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; } /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline void SetPolicyNames(const Aws::Vector& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; } /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline void SetPolicyNames(Aws::Vector&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::move(value); } /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline GetIdentityPoliciesRequest& WithPolicyNames(const Aws::Vector& value) { SetPolicyNames(value); return *this;} /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline GetIdentityPoliciesRequest& WithPolicyNames(Aws::Vector&& value) { SetPolicyNames(std::move(value)); return *this;} /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline GetIdentityPoliciesRequest& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; } /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline GetIdentityPoliciesRequest& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(std::move(value)); return *this; } /** *

A list of the names of policies to be retrieved. You can retrieve a maximum * of 20 policies at a time. If you do not know the names of the policies that are * attached to the identity, you can use ListIdentityPolicies.

*/ inline GetIdentityPoliciesRequest& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; } private: Aws::String m_identity; bool m_identityHasBeenSet = false; Aws::Vector m_policyNames; bool m_policyNamesHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws