/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { class CreateServiceSpecificCredentialResult { public: AWS_IAM_API CreateServiceSpecificCredentialResult(); AWS_IAM_API CreateServiceSpecificCredentialResult(const Aws::AmazonWebServiceResult& result); AWS_IAM_API CreateServiceSpecificCredentialResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A structure that contains information about the newly created * service-specific credential.

This is the only time that the * password for this credential set is available. It cannot be recovered later. * Instead, you must reset the password with * ResetServiceSpecificCredential.

*/ inline const ServiceSpecificCredential& GetServiceSpecificCredential() const{ return m_serviceSpecificCredential; } /** *

A structure that contains information about the newly created * service-specific credential.

This is the only time that the * password for this credential set is available. It cannot be recovered later. * Instead, you must reset the password with * ResetServiceSpecificCredential.

*/ inline void SetServiceSpecificCredential(const ServiceSpecificCredential& value) { m_serviceSpecificCredential = value; } /** *

A structure that contains information about the newly created * service-specific credential.

This is the only time that the * password for this credential set is available. It cannot be recovered later. * Instead, you must reset the password with * ResetServiceSpecificCredential.

*/ inline void SetServiceSpecificCredential(ServiceSpecificCredential&& value) { m_serviceSpecificCredential = std::move(value); } /** *

A structure that contains information about the newly created * service-specific credential.

This is the only time that the * password for this credential set is available. It cannot be recovered later. * Instead, you must reset the password with * ResetServiceSpecificCredential.

*/ inline CreateServiceSpecificCredentialResult& WithServiceSpecificCredential(const ServiceSpecificCredential& value) { SetServiceSpecificCredential(value); return *this;} /** *

A structure that contains information about the newly created * service-specific credential.

This is the only time that the * password for this credential set is available. It cannot be recovered later. * Instead, you must reset the password with * ResetServiceSpecificCredential.

*/ inline CreateServiceSpecificCredentialResult& WithServiceSpecificCredential(ServiceSpecificCredential&& value) { SetServiceSpecificCredential(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CreateServiceSpecificCredentialResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateServiceSpecificCredentialResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: ServiceSpecificCredential m_serviceSpecificCredential; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace IAM } // namespace Aws