AWS SDK for C++  0.12.9
AWS SDK for C++
Signer.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace CloudFront
30 {
31 namespace Model
32 {
33 
40  {
41  public:
42  Signer();
43  Signer(const Aws::Utils::Xml::XmlNode& xmlNode);
44  Signer& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
54  inline const Aws::String& GetAwsAccountNumber() const{ return m_awsAccountNumber; }
55 
62  inline void SetAwsAccountNumber(const Aws::String& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = value; }
63 
70  inline void SetAwsAccountNumber(Aws::String&& value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber = value; }
71 
78  inline void SetAwsAccountNumber(const char* value) { m_awsAccountNumberHasBeenSet = true; m_awsAccountNumber.assign(value); }
79 
86  inline Signer& WithAwsAccountNumber(const Aws::String& value) { SetAwsAccountNumber(value); return *this;}
87 
94  inline Signer& WithAwsAccountNumber(Aws::String&& value) { SetAwsAccountNumber(value); return *this;}
95 
102  inline Signer& WithAwsAccountNumber(const char* value) { SetAwsAccountNumber(value); return *this;}
103 
108  inline const KeyPairIds& GetKeyPairIds() const{ return m_keyPairIds; }
109 
114  inline void SetKeyPairIds(const KeyPairIds& value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds = value; }
115 
120  inline void SetKeyPairIds(KeyPairIds&& value) { m_keyPairIdsHasBeenSet = true; m_keyPairIds = value; }
121 
126  inline Signer& WithKeyPairIds(const KeyPairIds& value) { SetKeyPairIds(value); return *this;}
127 
132  inline Signer& WithKeyPairIds(KeyPairIds&& value) { SetKeyPairIds(value); return *this;}
133 
134  private:
135  Aws::String m_awsAccountNumber;
136  bool m_awsAccountNumberHasBeenSet;
137  KeyPairIds m_keyPairIds;
138  bool m_keyPairIdsHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace CloudFront
143 } // namespace Aws
const KeyPairIds & GetKeyPairIds() const
Definition: Signer.h:108
Signer & WithAwsAccountNumber(const Aws::String &value)
Definition: Signer.h:86
void SetKeyPairIds(const KeyPairIds &value)
Definition: Signer.h:114
Signer & WithAwsAccountNumber(const char *value)
Definition: Signer.h:102
void SetKeyPairIds(KeyPairIds &&value)
Definition: Signer.h:120
void SetAwsAccountNumber(const Aws::String &value)
Definition: Signer.h:62
Signer & WithKeyPairIds(KeyPairIds &&value)
Definition: Signer.h:132
#define AWS_CLOUDFRONT_API
Signer & WithKeyPairIds(const KeyPairIds &value)
Definition: Signer.h:126
void SetAwsAccountNumber(const char *value)
Definition: Signer.h:78
void SetAwsAccountNumber(Aws::String &&value)
Definition: Signer.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetAwsAccountNumber() const
Definition: Signer.h:54
Signer & WithAwsAccountNumber(Aws::String &&value)
Definition: Signer.h:94
JSON (JavaScript Object Notation).