/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains additional details about a service-specific
* credential.See Also:
AWS
* API Reference
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 ServiceSpecificCredentialMetadata& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *The name of the IAM user associated with the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *The name of the IAM user associated with the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& 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.
The status of the service-specific credential. Active
means that
* the key is valid for API calls, while Inactive
means it is not.
The status of the service-specific credential. Active
means that
* the key is valid for API calls, while Inactive
means it is not.
The status of the service-specific credential. Active
means that
* the key is valid for API calls, while Inactive
means it is not.
The status of the service-specific credential. Active
means that
* the key is valid for API calls, while Inactive
means it is not.
The status of the service-specific credential. Active
means that
* the key is valid for API calls, while Inactive
means it is not.
The generated user name for the service-specific credential.
*/ inline const Aws::String& GetServiceUserName() const{ return m_serviceUserName; } /** *The generated user name for the service-specific credential.
*/ inline bool ServiceUserNameHasBeenSet() const { return m_serviceUserNameHasBeenSet; } /** *The generated user name for the service-specific credential.
*/ inline void SetServiceUserName(const Aws::String& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = value; } /** *The generated user name for the service-specific credential.
*/ inline void SetServiceUserName(Aws::String&& value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName = std::move(value); } /** *The generated user name for the service-specific credential.
*/ inline void SetServiceUserName(const char* value) { m_serviceUserNameHasBeenSet = true; m_serviceUserName.assign(value); } /** *The generated user name for the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& WithServiceUserName(const Aws::String& value) { SetServiceUserName(value); return *this;} /** *The generated user name for the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& WithServiceUserName(Aws::String&& value) { SetServiceUserName(std::move(value)); return *this;} /** *The generated user name for the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& WithServiceUserName(const char* value) { SetServiceUserName(value); return *this;} /** *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 ServiceSpecificCredentialMetadata& 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 ServiceSpecificCredentialMetadata& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(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 ServiceSpecificCredentialMetadata& WithServiceSpecificCredentialId(const Aws::String& value) { SetServiceSpecificCredentialId(value); return *this;} /** *The unique identifier for the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& WithServiceSpecificCredentialId(Aws::String&& value) { SetServiceSpecificCredentialId(std::move(value)); return *this;} /** *The unique identifier for the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& WithServiceSpecificCredentialId(const char* value) { SetServiceSpecificCredentialId(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 ServiceSpecificCredentialMetadata& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *The name of the service associated with the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *The name of the service associated with the service-specific credential.
*/ inline ServiceSpecificCredentialMetadata& WithServiceName(const char* value) { SetServiceName(value); return *this;} private: Aws::String m_userName; bool m_userNameHasBeenSet = false; StatusType m_status; bool m_statusHasBeenSet = false; Aws::String m_serviceUserName; bool m_serviceUserNameHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; Aws::String m_serviceSpecificCredentialId; bool m_serviceSpecificCredentialIdHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws