This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ram/include/aws/ram/model/PromoteResourceShareCreatedFromPolicyRequest.h

90 lines
2.8 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ram/RAM_EXPORTS.h>
#include <aws/ram/RAMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace RAM
{
namespace Model
{
/**
*/
class AWS_RAM_API PromoteResourceShareCreatedFromPolicyRequest : public RAMRequest
{
public:
PromoteResourceShareCreatedFromPolicyRequest();
// 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 "PromoteResourceShareCreatedFromPolicy"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The ARN of the resource share to promote.</p>
*/
inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
/**
* <p>The ARN of the resource share to promote.</p>
*/
inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
/**
* <p>The ARN of the resource share to promote.</p>
*/
inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
/**
* <p>The ARN of the resource share to promote.</p>
*/
inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
/**
* <p>The ARN of the resource share to promote.</p>
*/
inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
/**
* <p>The ARN of the resource share to promote.</p>
*/
inline PromoteResourceShareCreatedFromPolicyRequest& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
/**
* <p>The ARN of the resource share to promote.</p>
*/
inline PromoteResourceShareCreatedFromPolicyRequest& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource share to promote.</p>
*/
inline PromoteResourceShareCreatedFromPolicyRequest& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
private:
Aws::String m_resourceShareArn;
bool m_resourceShareArnHasBeenSet;
};
} // namespace Model
} // namespace RAM
} // namespace Aws