/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a grant.See Also:
AWS
* API Reference
Amazon Resource Name (ARN) of the grant.
*/ inline const Aws::String& GetGrantArn() const{ return m_grantArn; } /** *Amazon Resource Name (ARN) of the grant.
*/ inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; } /** *Amazon Resource Name (ARN) of the grant.
*/ inline void SetGrantArn(const Aws::String& value) { m_grantArnHasBeenSet = true; m_grantArn = value; } /** *Amazon Resource Name (ARN) of the grant.
*/ inline void SetGrantArn(Aws::String&& value) { m_grantArnHasBeenSet = true; m_grantArn = std::move(value); } /** *Amazon Resource Name (ARN) of the grant.
*/ inline void SetGrantArn(const char* value) { m_grantArnHasBeenSet = true; m_grantArn.assign(value); } /** *Amazon Resource Name (ARN) of the grant.
*/ inline Grant& WithGrantArn(const Aws::String& value) { SetGrantArn(value); return *this;} /** *Amazon Resource Name (ARN) of the grant.
*/ inline Grant& WithGrantArn(Aws::String&& value) { SetGrantArn(std::move(value)); return *this;} /** *Amazon Resource Name (ARN) of the grant.
*/ inline Grant& WithGrantArn(const char* value) { SetGrantArn(value); return *this;} /** *Grant name.
*/ inline const Aws::String& GetGrantName() const{ return m_grantName; } /** *Grant name.
*/ inline bool GrantNameHasBeenSet() const { return m_grantNameHasBeenSet; } /** *Grant name.
*/ inline void SetGrantName(const Aws::String& value) { m_grantNameHasBeenSet = true; m_grantName = value; } /** *Grant name.
*/ inline void SetGrantName(Aws::String&& value) { m_grantNameHasBeenSet = true; m_grantName = std::move(value); } /** *Grant name.
*/ inline void SetGrantName(const char* value) { m_grantNameHasBeenSet = true; m_grantName.assign(value); } /** *Grant name.
*/ inline Grant& WithGrantName(const Aws::String& value) { SetGrantName(value); return *this;} /** *Grant name.
*/ inline Grant& WithGrantName(Aws::String&& value) { SetGrantName(std::move(value)); return *this;} /** *Grant name.
*/ inline Grant& WithGrantName(const char* value) { SetGrantName(value); return *this;} /** *Parent ARN.
*/ inline const Aws::String& GetParentArn() const{ return m_parentArn; } /** *Parent ARN.
*/ inline bool ParentArnHasBeenSet() const { return m_parentArnHasBeenSet; } /** *Parent ARN.
*/ inline void SetParentArn(const Aws::String& value) { m_parentArnHasBeenSet = true; m_parentArn = value; } /** *Parent ARN.
*/ inline void SetParentArn(Aws::String&& value) { m_parentArnHasBeenSet = true; m_parentArn = std::move(value); } /** *Parent ARN.
*/ inline void SetParentArn(const char* value) { m_parentArnHasBeenSet = true; m_parentArn.assign(value); } /** *Parent ARN.
*/ inline Grant& WithParentArn(const Aws::String& value) { SetParentArn(value); return *this;} /** *Parent ARN.
*/ inline Grant& WithParentArn(Aws::String&& value) { SetParentArn(std::move(value)); return *this;} /** *Parent ARN.
*/ inline Grant& WithParentArn(const char* value) { SetParentArn(value); return *this;} /** *License ARN.
*/ inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; } /** *License ARN.
*/ inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; } /** *License ARN.
*/ inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; } /** *License ARN.
*/ inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); } /** *License ARN.
*/ inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); } /** *License ARN.
*/ inline Grant& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;} /** *License ARN.
*/ inline Grant& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;} /** *License ARN.
*/ inline Grant& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;} /** *The grantee principal ARN.
*/ inline const Aws::String& GetGranteePrincipalArn() const{ return m_granteePrincipalArn; } /** *The grantee principal ARN.
*/ inline bool GranteePrincipalArnHasBeenSet() const { return m_granteePrincipalArnHasBeenSet; } /** *The grantee principal ARN.
*/ inline void SetGranteePrincipalArn(const Aws::String& value) { m_granteePrincipalArnHasBeenSet = true; m_granteePrincipalArn = value; } /** *The grantee principal ARN.
*/ inline void SetGranteePrincipalArn(Aws::String&& value) { m_granteePrincipalArnHasBeenSet = true; m_granteePrincipalArn = std::move(value); } /** *The grantee principal ARN.
*/ inline void SetGranteePrincipalArn(const char* value) { m_granteePrincipalArnHasBeenSet = true; m_granteePrincipalArn.assign(value); } /** *The grantee principal ARN.
*/ inline Grant& WithGranteePrincipalArn(const Aws::String& value) { SetGranteePrincipalArn(value); return *this;} /** *The grantee principal ARN.
*/ inline Grant& WithGranteePrincipalArn(Aws::String&& value) { SetGranteePrincipalArn(std::move(value)); return *this;} /** *The grantee principal ARN.
*/ inline Grant& WithGranteePrincipalArn(const char* value) { SetGranteePrincipalArn(value); return *this;} /** *Home Region of the grant.
*/ inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; } /** *Home Region of the grant.
*/ inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; } /** *Home Region of the grant.
*/ inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; } /** *Home Region of the grant.
*/ inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); } /** *Home Region of the grant.
*/ inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); } /** *Home Region of the grant.
*/ inline Grant& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;} /** *Home Region of the grant.
*/ inline Grant& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;} /** *Home Region of the grant.
*/ inline Grant& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;} /** *Grant status.
*/ inline const GrantStatus& GetGrantStatus() const{ return m_grantStatus; } /** *Grant status.
*/ inline bool GrantStatusHasBeenSet() const { return m_grantStatusHasBeenSet; } /** *Grant status.
*/ inline void SetGrantStatus(const GrantStatus& value) { m_grantStatusHasBeenSet = true; m_grantStatus = value; } /** *Grant status.
*/ inline void SetGrantStatus(GrantStatus&& value) { m_grantStatusHasBeenSet = true; m_grantStatus = std::move(value); } /** *Grant status.
*/ inline Grant& WithGrantStatus(const GrantStatus& value) { SetGrantStatus(value); return *this;} /** *Grant status.
*/ inline Grant& WithGrantStatus(GrantStatus&& value) { SetGrantStatus(std::move(value)); return *this;} /** *Grant status reason.
*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *Grant status reason.
*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *Grant status reason.
*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *Grant status reason.
*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *Grant status reason.
*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *Grant status reason.
*/ inline Grant& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *Grant status reason.
*/ inline Grant& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *Grant status reason.
*/ inline Grant& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *Grant version.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *Grant version.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *Grant version.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *Grant version.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *Grant version.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *Grant version.
*/ inline Grant& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *Grant version.
*/ inline Grant& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *Grant version.
*/ inline Grant& WithVersion(const char* value) { SetVersion(value); return *this;} /** *Granted operations.
*/ inline const Aws::VectorGranted operations.
*/ inline bool GrantedOperationsHasBeenSet() const { return m_grantedOperationsHasBeenSet; } /** *Granted operations.
*/ inline void SetGrantedOperations(const Aws::VectorGranted operations.
*/ inline void SetGrantedOperations(Aws::VectorGranted operations.
*/ inline Grant& WithGrantedOperations(const Aws::VectorGranted operations.
*/ inline Grant& WithGrantedOperations(Aws::VectorGranted operations.
*/ inline Grant& AddGrantedOperations(const AllowedOperation& value) { m_grantedOperationsHasBeenSet = true; m_grantedOperations.push_back(value); return *this; } /** *Granted operations.
*/ inline Grant& AddGrantedOperations(AllowedOperation&& value) { m_grantedOperationsHasBeenSet = true; m_grantedOperations.push_back(std::move(value)); return *this; } /** *The options specified for the grant.
*/ inline const Options& GetOptions() const{ return m_options; } /** *The options specified for the grant.
*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *The options specified for the grant.
*/ inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; } /** *The options specified for the grant.
*/ inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *The options specified for the grant.
*/ inline Grant& WithOptions(const Options& value) { SetOptions(value); return *this;} /** *The options specified for the grant.
*/ inline Grant& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;} private: Aws::String m_grantArn; bool m_grantArnHasBeenSet = false; Aws::String m_grantName; bool m_grantNameHasBeenSet = false; Aws::String m_parentArn; bool m_parentArnHasBeenSet = false; Aws::String m_licenseArn; bool m_licenseArnHasBeenSet = false; Aws::String m_granteePrincipalArn; bool m_granteePrincipalArnHasBeenSet = false; Aws::String m_homeRegion; bool m_homeRegionHasBeenSet = false; GrantStatus m_grantStatus; bool m_grantStatusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::Vector