AWS SDK for C++  1.9.109
AWS SDK for C++
CreateLongTermPricingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Snowball
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateLongTermPricing"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const LongTermPricingType& GetLongTermPricingType() const{ return m_longTermPricingType; }
43 
48  inline bool LongTermPricingTypeHasBeenSet() const { return m_longTermPricingTypeHasBeenSet; }
49 
54  inline void SetLongTermPricingType(const LongTermPricingType& value) { m_longTermPricingTypeHasBeenSet = true; m_longTermPricingType = value; }
55 
60  inline void SetLongTermPricingType(LongTermPricingType&& value) { m_longTermPricingTypeHasBeenSet = true; m_longTermPricingType = std::move(value); }
61 
66  inline CreateLongTermPricingRequest& WithLongTermPricingType(const LongTermPricingType& value) { SetLongTermPricingType(value); return *this;}
67 
72  inline CreateLongTermPricingRequest& WithLongTermPricingType(LongTermPricingType&& value) { SetLongTermPricingType(std::move(value)); return *this;}
73 
74 
79  inline bool GetIsLongTermPricingAutoRenew() const{ return m_isLongTermPricingAutoRenew; }
80 
85  inline bool IsLongTermPricingAutoRenewHasBeenSet() const { return m_isLongTermPricingAutoRenewHasBeenSet; }
86 
91  inline void SetIsLongTermPricingAutoRenew(bool value) { m_isLongTermPricingAutoRenewHasBeenSet = true; m_isLongTermPricingAutoRenew = value; }
92 
97  inline CreateLongTermPricingRequest& WithIsLongTermPricingAutoRenew(bool value) { SetIsLongTermPricingAutoRenew(value); return *this;}
98 
99 
103  inline const SnowballType& GetSnowballType() const{ return m_snowballType; }
104 
108  inline bool SnowballTypeHasBeenSet() const { return m_snowballTypeHasBeenSet; }
109 
113  inline void SetSnowballType(const SnowballType& value) { m_snowballTypeHasBeenSet = true; m_snowballType = value; }
114 
118  inline void SetSnowballType(SnowballType&& value) { m_snowballTypeHasBeenSet = true; m_snowballType = std::move(value); }
119 
123  inline CreateLongTermPricingRequest& WithSnowballType(const SnowballType& value) { SetSnowballType(value); return *this;}
124 
128  inline CreateLongTermPricingRequest& WithSnowballType(SnowballType&& value) { SetSnowballType(std::move(value)); return *this;}
129 
130  private:
131 
132  LongTermPricingType m_longTermPricingType;
133  bool m_longTermPricingTypeHasBeenSet;
134 
135  bool m_isLongTermPricingAutoRenew;
136  bool m_isLongTermPricingAutoRenewHasBeenSet;
137 
138  SnowballType m_snowballType;
139  bool m_snowballTypeHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace Snowball
144 } // namespace Aws
Aws::Snowball::Model::CreateLongTermPricingRequest::WithLongTermPricingType
CreateLongTermPricingRequest & WithLongTermPricingType(LongTermPricingType &&value)
Definition: CreateLongTermPricingRequest.h:72
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Snowball::Model::CreateLongTermPricingRequest::LongTermPricingTypeHasBeenSet
bool LongTermPricingTypeHasBeenSet() const
Definition: CreateLongTermPricingRequest.h:48
Aws::Snowball::Model::CreateLongTermPricingRequest::IsLongTermPricingAutoRenewHasBeenSet
bool IsLongTermPricingAutoRenewHasBeenSet() const
Definition: CreateLongTermPricingRequest.h:85
LongTermPricingType.h
Aws::Snowball::Model::CreateLongTermPricingRequest::WithSnowballType
CreateLongTermPricingRequest & WithSnowballType(SnowballType &&value)
Definition: CreateLongTermPricingRequest.h:128
SnowballType.h
Aws::Snowball::Model::CreateLongTermPricingRequest::SetIsLongTermPricingAutoRenew
void SetIsLongTermPricingAutoRenew(bool value)
Definition: CreateLongTermPricingRequest.h:91
Aws::Snowball::Model::CreateLongTermPricingRequest::WithIsLongTermPricingAutoRenew
CreateLongTermPricingRequest & WithIsLongTermPricingAutoRenew(bool value)
Definition: CreateLongTermPricingRequest.h:97
Aws::Snowball::Model::CreateLongTermPricingRequest::GetLongTermPricingType
const LongTermPricingType & GetLongTermPricingType() const
Definition: CreateLongTermPricingRequest.h:42
Aws::Snowball::Model::CreateLongTermPricingRequest::WithLongTermPricingType
CreateLongTermPricingRequest & WithLongTermPricingType(const LongTermPricingType &value)
Definition: CreateLongTermPricingRequest.h:66
Aws::Snowball::Model::CreateLongTermPricingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Snowball::Model::CreateLongTermPricingRequest::SetSnowballType
void SetSnowballType(SnowballType &&value)
Definition: CreateLongTermPricingRequest.h:118
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
SnowballRequest.h
Aws::Snowball::Model::CreateLongTermPricingRequest::SetLongTermPricingType
void SetLongTermPricingType(const LongTermPricingType &value)
Definition: CreateLongTermPricingRequest.h:54
Aws::Snowball::Model::CreateLongTermPricingRequest::GetSnowballType
const SnowballType & GetSnowballType() const
Definition: CreateLongTermPricingRequest.h:103
Aws::Snowball::Model::CreateLongTermPricingRequest::GetIsLongTermPricingAutoRenew
bool GetIsLongTermPricingAutoRenew() const
Definition: CreateLongTermPricingRequest.h:79
Aws::Snowball::Model::CreateLongTermPricingRequest::SetSnowballType
void SetSnowballType(const SnowballType &value)
Definition: CreateLongTermPricingRequest.h:113
Aws::Snowball::Model::CreateLongTermPricingRequest
Definition: CreateLongTermPricingRequest.h:23
Aws::Snowball::Model::LongTermPricingType
LongTermPricingType
Definition: LongTermPricingType.h:17
Aws::Snowball::Model::CreateLongTermPricingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLongTermPricingRequest.h:31
Aws::Snowball::Model::CreateLongTermPricingRequest::SnowballTypeHasBeenSet
bool SnowballTypeHasBeenSet() const
Definition: CreateLongTermPricingRequest.h:108
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::CreateLongTermPricingRequest::WithSnowballType
CreateLongTermPricingRequest & WithSnowballType(const SnowballType &value)
Definition: CreateLongTermPricingRequest.h:123
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::CreateLongTermPricingRequest::SetLongTermPricingType
void SetLongTermPricingType(LongTermPricingType &&value)
Definition: CreateLongTermPricingRequest.h:60
Aws::Snowball::Model::CreateLongTermPricingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Snowball_EXPORTS.h
Aws::Snowball::Model::CreateLongTermPricingRequest::CreateLongTermPricingRequest
CreateLongTermPricingRequest()
Aws::Snowball::Model::SnowballType
SnowballType
Definition: SnowballType.h:17