/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { /** *

Contains details about the permissions policies that are attached to the * specified identity (user, group, or role).

This data type is used as a * response element in the ListPoliciesGrantingServiceAccess * operation.

See Also:

AWS * API Reference

*/ class ListPoliciesGrantingServiceAccessEntry { public: AWS_IAM_API ListPoliciesGrantingServiceAccessEntry(); AWS_IAM_API ListPoliciesGrantingServiceAccessEntry(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API ListPoliciesGrantingServiceAccessEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The namespace of the service that was accessed.

To learn the service * namespace of a service, see Actions, * resources, and condition keys for Amazon Web Services services in the * Service Authorization Reference. Choose the name of the service to view * details for that service. In the first paragraph, find the service prefix. For * example, (service prefix: a4b). For more information about service * namespaces, see Amazon * Web Services service namespaces in the Amazon Web Services General * Reference.

*/ inline const Aws::String& GetServiceNamespace() const{ return m_serviceNamespace; } /** *

The namespace of the service that was accessed.

To learn the service * namespace of a service, see Actions, * resources, and condition keys for Amazon Web Services services in the * Service Authorization Reference. Choose the name of the service to view * details for that service. In the first paragraph, find the service prefix. For * example, (service prefix: a4b). For more information about service * namespaces, see Amazon * Web Services service namespaces in the Amazon Web Services General * Reference.

*/ inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; } /** *

The namespace of the service that was accessed.

To learn the service * namespace of a service, see Actions, * resources, and condition keys for Amazon Web Services services in the * Service Authorization Reference. Choose the name of the service to view * details for that service. In the first paragraph, find the service prefix. For * example, (service prefix: a4b). For more information about service * namespaces, see Amazon * Web Services service namespaces in the Amazon Web Services General * Reference.

*/ inline void SetServiceNamespace(const Aws::String& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; } /** *

The namespace of the service that was accessed.

To learn the service * namespace of a service, see Actions, * resources, and condition keys for Amazon Web Services services in the * Service Authorization Reference. Choose the name of the service to view * details for that service. In the first paragraph, find the service prefix. For * example, (service prefix: a4b). For more information about service * namespaces, see Amazon * Web Services service namespaces in the Amazon Web Services General * Reference.

*/ inline void SetServiceNamespace(Aws::String&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); } /** *

The namespace of the service that was accessed.

To learn the service * namespace of a service, see Actions, * resources, and condition keys for Amazon Web Services services in the * Service Authorization Reference. Choose the name of the service to view * details for that service. In the first paragraph, find the service prefix. For * example, (service prefix: a4b). For more information about service * namespaces, see Amazon * Web Services service namespaces in the Amazon Web Services General * Reference.

*/ inline void SetServiceNamespace(const char* value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace.assign(value); } /** *

The namespace of the service that was accessed.

To learn the service * namespace of a service, see Actions, * resources, and condition keys for Amazon Web Services services in the * Service Authorization Reference. Choose the name of the service to view * details for that service. In the first paragraph, find the service prefix. For * example, (service prefix: a4b). For more information about service * namespaces, see Amazon * Web Services service namespaces in the Amazon Web Services General * Reference.

*/ inline ListPoliciesGrantingServiceAccessEntry& WithServiceNamespace(const Aws::String& value) { SetServiceNamespace(value); return *this;} /** *

The namespace of the service that was accessed.

To learn the service * namespace of a service, see Actions, * resources, and condition keys for Amazon Web Services services in the * Service Authorization Reference. Choose the name of the service to view * details for that service. In the first paragraph, find the service prefix. For * example, (service prefix: a4b). For more information about service * namespaces, see Amazon * Web Services service namespaces in the Amazon Web Services General * Reference.

*/ inline ListPoliciesGrantingServiceAccessEntry& WithServiceNamespace(Aws::String&& value) { SetServiceNamespace(std::move(value)); return *this;} /** *

The namespace of the service that was accessed.

To learn the service * namespace of a service, see Actions, * resources, and condition keys for Amazon Web Services services in the * Service Authorization Reference. Choose the name of the service to view * details for that service. In the first paragraph, find the service prefix. For * example, (service prefix: a4b). For more information about service * namespaces, see Amazon * Web Services service namespaces in the Amazon Web Services General * Reference.

*/ inline ListPoliciesGrantingServiceAccessEntry& WithServiceNamespace(const char* value) { SetServiceNamespace(value); return *this;} /** *

The��PoliciesGrantingServiceAccess object that contains details * about the policy.

*/ inline const Aws::Vector& GetPolicies() const{ return m_policies; } /** *

The��PoliciesGrantingServiceAccess object that contains details * about the policy.

*/ inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; } /** *

The��PoliciesGrantingServiceAccess object that contains details * about the policy.

*/ inline void SetPolicies(const Aws::Vector& value) { m_policiesHasBeenSet = true; m_policies = value; } /** *

The��PoliciesGrantingServiceAccess object that contains details * about the policy.

*/ inline void SetPolicies(Aws::Vector&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); } /** *

The��PoliciesGrantingServiceAccess object that contains details * about the policy.

*/ inline ListPoliciesGrantingServiceAccessEntry& WithPolicies(const Aws::Vector& value) { SetPolicies(value); return *this;} /** *

The��PoliciesGrantingServiceAccess object that contains details * about the policy.

*/ inline ListPoliciesGrantingServiceAccessEntry& WithPolicies(Aws::Vector&& value) { SetPolicies(std::move(value)); return *this;} /** *

The��PoliciesGrantingServiceAccess object that contains details * about the policy.

*/ inline ListPoliciesGrantingServiceAccessEntry& AddPolicies(const PolicyGrantingServiceAccess& value) { m_policiesHasBeenSet = true; m_policies.push_back(value); return *this; } /** *

The��PoliciesGrantingServiceAccess object that contains details * about the policy.

*/ inline ListPoliciesGrantingServiceAccessEntry& AddPolicies(PolicyGrantingServiceAccess&& value) { m_policiesHasBeenSet = true; m_policies.push_back(std::move(value)); return *this; } private: Aws::String m_serviceNamespace; bool m_serviceNamespaceHasBeenSet = false; Aws::Vector m_policies; bool m_policiesHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws