AWS SDK for C++  1.8.154
AWS SDK for C++
DestinationProperties.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GuardDuty
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
46 
50  inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
51 
55  inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
56 
60  inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
61 
65  inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
66 
70  inline DestinationProperties& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
71 
75  inline DestinationProperties& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
76 
80  inline DestinationProperties& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
81 
82 
86  inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
87 
91  inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
92 
96  inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
97 
101  inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
102 
106  inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
107 
111  inline DestinationProperties& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
112 
116  inline DestinationProperties& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
117 
121  inline DestinationProperties& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
122 
123  private:
124 
125  Aws::String m_destinationArn;
126  bool m_destinationArnHasBeenSet;
127 
128  Aws::String m_kmsKeyArn;
129  bool m_kmsKeyArnHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace GuardDuty
134 } // namespace Aws
Aws::GuardDuty::Model::DestinationProperties::GetDestinationArn
const Aws::String & GetDestinationArn() const
Definition: DestinationProperties.h:45
Aws::GuardDuty::Model::DestinationProperties
Definition: DestinationProperties.h:34
Aws::GuardDuty::Model::DestinationProperties::WithKmsKeyArn
DestinationProperties & WithKmsKeyArn(const char *value)
Definition: DestinationProperties.h:121
Aws::GuardDuty::Model::DestinationProperties::operator=
DestinationProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::DestinationProperties::WithKmsKeyArn
DestinationProperties & WithKmsKeyArn(Aws::String &&value)
Definition: DestinationProperties.h:116
Aws::GuardDuty::Model::DestinationProperties::WithDestinationArn
DestinationProperties & WithDestinationArn(Aws::String &&value)
Definition: DestinationProperties.h:75
Aws::GuardDuty::Model::DestinationProperties::KmsKeyArnHasBeenSet
bool KmsKeyArnHasBeenSet() const
Definition: DestinationProperties.h:91
Aws::GuardDuty::Model::DestinationProperties::SetKmsKeyArn
void SetKmsKeyArn(const char *value)
Definition: DestinationProperties.h:106
Aws::GuardDuty::Model::DestinationProperties::DestinationProperties
DestinationProperties()
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::DestinationProperties::WithDestinationArn
DestinationProperties & WithDestinationArn(const Aws::String &value)
Definition: DestinationProperties.h:70
Aws::GuardDuty::Model::DestinationProperties::SetDestinationArn
void SetDestinationArn(Aws::String &&value)
Definition: DestinationProperties.h:60
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::DestinationProperties::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::DestinationProperties::SetDestinationArn
void SetDestinationArn(const Aws::String &value)
Definition: DestinationProperties.h:55
Aws::GuardDuty::Model::DestinationProperties::SetKmsKeyArn
void SetKmsKeyArn(const Aws::String &value)
Definition: DestinationProperties.h:96
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::DestinationProperties::WithDestinationArn
DestinationProperties & WithDestinationArn(const char *value)
Definition: DestinationProperties.h:80
Aws::GuardDuty::Model::DestinationProperties::SetDestinationArn
void SetDestinationArn(const char *value)
Definition: DestinationProperties.h:65
Aws::GuardDuty::Model::DestinationProperties::SetKmsKeyArn
void SetKmsKeyArn(Aws::String &&value)
Definition: DestinationProperties.h:101
Aws::GuardDuty::Model::DestinationProperties::DestinationArnHasBeenSet
bool DestinationArnHasBeenSet() const
Definition: DestinationProperties.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::DestinationProperties::WithKmsKeyArn
DestinationProperties & WithKmsKeyArn(const Aws::String &value)
Definition: DestinationProperties.h:111
Aws::GuardDuty::Model::DestinationProperties::DestinationProperties
DestinationProperties(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::DestinationProperties::GetKmsKeyArn
const Aws::String & GetKmsKeyArn() const
Definition: DestinationProperties.h:86