/** * 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 the details of a service-specific credential.

See * Also:

AWS * API Reference

*/ class ServiceSpecificCredential { public: AWS_IAM_API ServiceSpecificCredential(); AWS_IAM_API ServiceSpecificCredential(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API ServiceSpecificCredential& 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 date and time, in ISO 8601 * date-time format, when the service-specific credential were created.

*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *

The date and time, in ISO 8601 * date-time format, when the service-specific credential were created.

*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *

The date and time, in ISO 8601 * date-time format, when the service-specific credential were created.

*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *

The date and time, in ISO 8601 * date-time format, when the service-specific credential were created.

*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *

The date and time, in ISO 8601 * date-time format, when the service-specific credential were created.

*/ inline ServiceSpecificCredential& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *

The date and time, in ISO 8601 * date-time format, when the service-specific credential were created.

*/ inline ServiceSpecificCredential& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} /** *

The name of the service associated with the service-specific credential.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service associated with the service-specific credential.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service associated with the service-specific credential.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service associated with the service-specific credential.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service associated with the service-specific credential.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service associated with the service-specific credential.

*/ inline ServiceSpecificCredential& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service associated with the service-specific credential.

*/ inline ServiceSpecificCredential& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service associated with the service-specific credential.

*/ inline ServiceSpecificCredential& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The generated user name for the service-specific credential. This value is * generated by combining the IAM user's name combined with the ID number of the * Amazon Web Services account, as in jane-at-123456789012, for * example. This value cannot be configured by the user.

*/ inline const Aws::String& GetServiceUserName() const{ return m_serviceUserName; } /** *

The generated user name for the service-specific credential. This value is * generated by combining the IAM user's name combined with the ID number of the * Amazon Web Services account, as in jane-at-123456789012, for * example. This value cannot be configured by the user.

*/ inline bool ServiceUserNameHasBeenSet() const { return m_serviceUserNameHasBeenSet; } /** *

The generated user name for the service-specific credential. This value is * generated by combining the IAM user's name combined with the ID number of the * Amazon Web Services account, as in jane-at-123456789012, for * example. This value cannot be configured by the user.

*/ inline void SetServiceUserName(const Aws::String& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = value; } /** *

The generated user name for the service-specific credential. This value is * generated by combining the IAM user's name combined with the ID number of the * Amazon Web Services account, as in jane-at-123456789012, for * example. This value cannot be configured by the user.

*/ inline void SetServiceUserName(Aws::String&& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = std::move(value); } /** *

The generated user name for the service-specific credential. This value is * generated by combining the IAM user's name combined with the ID number of the * Amazon Web Services account, as in jane-at-123456789012, for * example. This value cannot be configured by the user.

*/ inline void SetServiceUserName(const char* value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName.assign(value); } /** *

The generated user name for the service-specific credential. This value is * generated by combining the IAM user's name combined with the ID number of the * Amazon Web Services account, as in jane-at-123456789012, for * example. This value cannot be configured by the user.

*/ inline ServiceSpecificCredential& WithServiceUserName(const Aws::String& value) { SetServiceUserName(value); return *this;} /** *

The generated user name for the service-specific credential. This value is * generated by combining the IAM user's name combined with the ID number of the * Amazon Web Services account, as in jane-at-123456789012, for * example. This value cannot be configured by the user.

*/ inline ServiceSpecificCredential& WithServiceUserName(Aws::String&& value) { SetServiceUserName(std::move(value)); return *this;} /** *

The generated user name for the service-specific credential. This value is * generated by combining the IAM user's name combined with the ID number of the * Amazon Web Services account, as in jane-at-123456789012, for * example. This value cannot be configured by the user.

*/ inline ServiceSpecificCredential& WithServiceUserName(const char* value) { SetServiceUserName(value); return *this;} /** *

The generated password for the service-specific credential.

*/ inline const Aws::String& GetServicePassword() const{ return m_servicePassword; } /** *

The generated password for the service-specific credential.

*/ inline bool ServicePasswordHasBeenSet() const { return m_servicePasswordHasBeenSet; } /** *

The generated password for the service-specific credential.

*/ inline void SetServicePassword(const Aws::String& value) { m_servicePasswordHasBeenSet = true; m_servicePassword = value; } /** *

The generated password for the service-specific credential.

*/ inline void SetServicePassword(Aws::String&& value) { m_servicePasswordHasBeenSet = true; m_servicePassword = std::move(value); } /** *

The generated password for the service-specific credential.

*/ inline void SetServicePassword(const char* value) { m_servicePasswordHasBeenSet = true; m_servicePassword.assign(value); } /** *

The generated password for the service-specific credential.

*/ inline ServiceSpecificCredential& WithServicePassword(const Aws::String& value) { SetServicePassword(value); return *this;} /** *

The generated password for the service-specific credential.

*/ inline ServiceSpecificCredential& WithServicePassword(Aws::String&& value) { SetServicePassword(std::move(value)); return *this;} /** *

The generated password for the service-specific credential.

*/ inline ServiceSpecificCredential& WithServicePassword(const char* value) { SetServicePassword(value); return *this;} /** *

The unique identifier for the service-specific credential.

*/ inline const Aws::String& GetServiceSpecificCredentialId() const{ return m_serviceSpecificCredentialId; } /** *

The unique identifier for the service-specific credential.

*/ inline bool ServiceSpecificCredentialIdHasBeenSet() const { return m_serviceSpecificCredentialIdHasBeenSet; } /** *

The unique identifier for the service-specific credential.

*/ inline void SetServiceSpecificCredentialId(const Aws::String& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = value; } /** *

The unique identifier for the service-specific credential.

*/ inline void SetServiceSpecificCredentialId(Aws::String&& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = std::move(value); } /** *

The unique identifier for the service-specific credential.

*/ inline void SetServiceSpecificCredentialId(const char* value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId.assign(value); } /** *

The unique identifier for the service-specific credential.

*/ inline ServiceSpecificCredential& WithServiceSpecificCredentialId(const Aws::String& value) { SetServiceSpecificCredentialId(value); return *this;} /** *

The unique identifier for the service-specific credential.

*/ inline ServiceSpecificCredential& WithServiceSpecificCredentialId(Aws::String&& value) { SetServiceSpecificCredentialId(std::move(value)); return *this;} /** *

The unique identifier for the service-specific credential.

*/ inline ServiceSpecificCredential& WithServiceSpecificCredentialId(const char* value) { SetServiceSpecificCredentialId(value); return *this;} /** *

The name of the IAM user associated with the service-specific credential.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The name of the IAM user associated with the service-specific credential.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The name of the IAM user associated with the service-specific credential.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The name of the IAM user associated with the service-specific credential.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The name of the IAM user associated with the service-specific credential.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The name of the IAM user associated with the service-specific credential.

*/ inline ServiceSpecificCredential& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The name of the IAM user associated with the service-specific credential.

*/ inline ServiceSpecificCredential& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The name of the IAM user associated with the service-specific credential.

*/ inline ServiceSpecificCredential& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

The status of the service-specific credential. Active means that * the key is valid for API calls, while Inactive means it is not.

*/ inline const StatusType& GetStatus() const{ return m_status; } /** *

The status of the service-specific credential. Active means that * the key is valid for API calls, while Inactive means it is not.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the service-specific credential. Active means that * the key is valid for API calls, while Inactive means it is not.

*/ inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the service-specific credential. Active means that * the key is valid for API calls, while Inactive means it is not.

*/ inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the service-specific credential. Active means that * the key is valid for API calls, while Inactive means it is not.

*/ inline ServiceSpecificCredential& WithStatus(const StatusType& value) { SetStatus(value); return *this;} /** *

The status of the service-specific credential. Active means that * the key is valid for API calls, while Inactive means it is not.

*/ inline ServiceSpecificCredential& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_serviceUserName; bool m_serviceUserNameHasBeenSet = false; Aws::String m_servicePassword; bool m_servicePasswordHasBeenSet = false; Aws::String m_serviceSpecificCredentialId; bool m_serviceSpecificCredentialIdHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; StatusType m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws