/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace LicenseManager { namespace Model { /** */ class CreateGrantVersionRequest : public LicenseManagerRequest { public: AWS_LICENSEMANAGER_API CreateGrantVersionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateGrantVersion"; } AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override; AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateGrantVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateGrantVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateGrantVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

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 CreateGrantVersionRequest& WithGrantArn(const Aws::String& value) { SetGrantArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the grant.

*/ inline CreateGrantVersionRequest& WithGrantArn(Aws::String&& value) { SetGrantArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the grant.

*/ inline CreateGrantVersionRequest& 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 CreateGrantVersionRequest& WithGrantName(const Aws::String& value) { SetGrantName(value); return *this;} /** *

Grant name.

*/ inline CreateGrantVersionRequest& WithGrantName(Aws::String&& value) { SetGrantName(std::move(value)); return *this;} /** *

Grant name.

*/ inline CreateGrantVersionRequest& WithGrantName(const char* value) { SetGrantName(value); return *this;} /** *

Allowed operations for the grant.

*/ inline const Aws::Vector& GetAllowedOperations() const{ return m_allowedOperations; } /** *

Allowed operations for the grant.

*/ inline bool AllowedOperationsHasBeenSet() const { return m_allowedOperationsHasBeenSet; } /** *

Allowed operations for the grant.

*/ inline void SetAllowedOperations(const Aws::Vector& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = value; } /** *

Allowed operations for the grant.

*/ inline void SetAllowedOperations(Aws::Vector&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = std::move(value); } /** *

Allowed operations for the grant.

*/ inline CreateGrantVersionRequest& WithAllowedOperations(const Aws::Vector& value) { SetAllowedOperations(value); return *this;} /** *

Allowed operations for the grant.

*/ inline CreateGrantVersionRequest& WithAllowedOperations(Aws::Vector&& value) { SetAllowedOperations(std::move(value)); return *this;} /** *

Allowed operations for the grant.

*/ inline CreateGrantVersionRequest& AddAllowedOperations(const AllowedOperation& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(value); return *this; } /** *

Allowed operations for the grant.

*/ inline CreateGrantVersionRequest& AddAllowedOperations(AllowedOperation&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(std::move(value)); return *this; } /** *

Grant status.

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

Grant status.

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

Grant status.

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

Grant status.

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

Grant status.

*/ inline CreateGrantVersionRequest& WithStatus(const GrantStatus& value) { SetStatus(value); return *this;} /** *

Grant status.

*/ inline CreateGrantVersionRequest& WithStatus(GrantStatus&& value) { SetStatus(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 CreateGrantVersionRequest& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

Grant status reason.

*/ inline CreateGrantVersionRequest& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

Grant status reason.

*/ inline CreateGrantVersionRequest& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

Current version of the grant.

*/ inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; } /** *

Current version of the grant.

*/ inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; } /** *

Current version of the grant.

*/ inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; } /** *

Current version of the grant.

*/ inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); } /** *

Current version of the grant.

*/ inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); } /** *

Current version of the grant.

*/ inline CreateGrantVersionRequest& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;} /** *

Current version of the grant.

*/ inline CreateGrantVersionRequest& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;} /** *

Current version of the grant.

*/ inline CreateGrantVersionRequest& WithSourceVersion(const char* value) { SetSourceVersion(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 CreateGrantVersionRequest& WithOptions(const Options& value) { SetOptions(value); return *this;} /** *

The options specified for the grant.

*/ inline CreateGrantVersionRequest& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_grantArn; bool m_grantArnHasBeenSet = false; Aws::String m_grantName; bool m_grantNameHasBeenSet = false; Aws::Vector m_allowedOperations; bool m_allowedOperationsHasBeenSet = false; GrantStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::String m_sourceVersion; bool m_sourceVersionHasBeenSet = false; Options m_options; bool m_optionsHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws