|
7 | 7 | #include <aws/ce/CostExplorer_EXPORTS.h>
|
8 | 8 | #include <aws/ce/CostExplorerRequest.h>
|
9 | 9 | #include <aws/ce/model/AnomalyMonitor.h>
|
| 10 | +#include <aws/core/utils/memory/stl/AWSVector.h> |
| 11 | +#include <aws/ce/model/ResourceTag.h> |
10 | 12 | #include <utility>
|
11 | 13 |
|
12 | 14 | namespace Aws
|
@@ -64,10 +66,166 @@ namespace Model
|
64 | 66 | */
|
65 | 67 | inline CreateAnomalyMonitorRequest& WithAnomalyMonitor(AnomalyMonitor&& value) { SetAnomalyMonitor(std::move(value)); return *this;}
|
66 | 68 |
|
| 69 | + |
| 70 | + /** |
| 71 | + * <p> An optional list of tags to associate with the specified <a |
| 72 | + * href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html"> |
| 73 | + * <code>AnomalyMonitor</code> </a>. You can use resource tags to control access to |
| 74 | + * your monitor using IAM policies.</p> <p>Each tag consists of a key and a value, |
| 75 | + * and each key must be unique for the resource. The following restrictions apply |
| 76 | + * to resource tags:</p> <ul> <li> <p>Although the maximum number of array members |
| 77 | + * is 200, you can assign a maximum of 50 user-tags to one resource. The remaining |
| 78 | + * are reserved for Amazon Web Services use</p> </li> <li> <p>The maximum length of |
| 79 | + * a key is 128 characters</p> </li> <li> <p>The maximum length of a value is 256 |
| 80 | + * characters</p> </li> <li> <p>Valid characters for keys and values are: |
| 81 | + * <code>A-Z</code>, <code>a-z</code>, spaces, <code>_.:/=+-</code> </p> </li> <li> |
| 82 | + * <p>Keys and values are case sensitive</p> </li> <li> <p>Keys and values are |
| 83 | + * trimmed for any leading or trailing whitespaces</p> </li> <li> <p>Don’t use |
| 84 | + * <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon |
| 85 | + * Web Services use</p> </li> </ul> |
| 86 | + */ |
| 87 | + inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; } |
| 88 | + |
| 89 | + /** |
| 90 | + * <p> An optional list of tags to associate with the specified <a |
| 91 | + * href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html"> |
| 92 | + * <code>AnomalyMonitor</code> </a>. You can use resource tags to control access to |
| 93 | + * your monitor using IAM policies.</p> <p>Each tag consists of a key and a value, |
| 94 | + * and each key must be unique for the resource. The following restrictions apply |
| 95 | + * to resource tags:</p> <ul> <li> <p>Although the maximum number of array members |
| 96 | + * is 200, you can assign a maximum of 50 user-tags to one resource. The remaining |
| 97 | + * are reserved for Amazon Web Services use</p> </li> <li> <p>The maximum length of |
| 98 | + * a key is 128 characters</p> </li> <li> <p>The maximum length of a value is 256 |
| 99 | + * characters</p> </li> <li> <p>Valid characters for keys and values are: |
| 100 | + * <code>A-Z</code>, <code>a-z</code>, spaces, <code>_.:/=+-</code> </p> </li> <li> |
| 101 | + * <p>Keys and values are case sensitive</p> </li> <li> <p>Keys and values are |
| 102 | + * trimmed for any leading or trailing whitespaces</p> </li> <li> <p>Don’t use |
| 103 | + * <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon |
| 104 | + * Web Services use</p> </li> </ul> |
| 105 | + */ |
| 106 | + inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; } |
| 107 | + |
| 108 | + /** |
| 109 | + * <p> An optional list of tags to associate with the specified <a |
| 110 | + * href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html"> |
| 111 | + * <code>AnomalyMonitor</code> </a>. You can use resource tags to control access to |
| 112 | + * your monitor using IAM policies.</p> <p>Each tag consists of a key and a value, |
| 113 | + * and each key must be unique for the resource. The following restrictions apply |
| 114 | + * to resource tags:</p> <ul> <li> <p>Although the maximum number of array members |
| 115 | + * is 200, you can assign a maximum of 50 user-tags to one resource. The remaining |
| 116 | + * are reserved for Amazon Web Services use</p> </li> <li> <p>The maximum length of |
| 117 | + * a key is 128 characters</p> </li> <li> <p>The maximum length of a value is 256 |
| 118 | + * characters</p> </li> <li> <p>Valid characters for keys and values are: |
| 119 | + * <code>A-Z</code>, <code>a-z</code>, spaces, <code>_.:/=+-</code> </p> </li> <li> |
| 120 | + * <p>Keys and values are case sensitive</p> </li> <li> <p>Keys and values are |
| 121 | + * trimmed for any leading or trailing whitespaces</p> </li> <li> <p>Don’t use |
| 122 | + * <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon |
| 123 | + * Web Services use</p> </li> </ul> |
| 124 | + */ |
| 125 | + inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; } |
| 126 | + |
| 127 | + /** |
| 128 | + * <p> An optional list of tags to associate with the specified <a |
| 129 | + * href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html"> |
| 130 | + * <code>AnomalyMonitor</code> </a>. You can use resource tags to control access to |
| 131 | + * your monitor using IAM policies.</p> <p>Each tag consists of a key and a value, |
| 132 | + * and each key must be unique for the resource. The following restrictions apply |
| 133 | + * to resource tags:</p> <ul> <li> <p>Although the maximum number of array members |
| 134 | + * is 200, you can assign a maximum of 50 user-tags to one resource. The remaining |
| 135 | + * are reserved for Amazon Web Services use</p> </li> <li> <p>The maximum length of |
| 136 | + * a key is 128 characters</p> </li> <li> <p>The maximum length of a value is 256 |
| 137 | + * characters</p> </li> <li> <p>Valid characters for keys and values are: |
| 138 | + * <code>A-Z</code>, <code>a-z</code>, spaces, <code>_.:/=+-</code> </p> </li> <li> |
| 139 | + * <p>Keys and values are case sensitive</p> </li> <li> <p>Keys and values are |
| 140 | + * trimmed for any leading or trailing whitespaces</p> </li> <li> <p>Don’t use |
| 141 | + * <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon |
| 142 | + * Web Services use</p> </li> </ul> |
| 143 | + */ |
| 144 | + inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); } |
| 145 | + |
| 146 | + /** |
| 147 | + * <p> An optional list of tags to associate with the specified <a |
| 148 | + * href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html"> |
| 149 | + * <code>AnomalyMonitor</code> </a>. You can use resource tags to control access to |
| 150 | + * your monitor using IAM policies.</p> <p>Each tag consists of a key and a value, |
| 151 | + * and each key must be unique for the resource. The following restrictions apply |
| 152 | + * to resource tags:</p> <ul> <li> <p>Although the maximum number of array members |
| 153 | + * is 200, you can assign a maximum of 50 user-tags to one resource. The remaining |
| 154 | + * are reserved for Amazon Web Services use</p> </li> <li> <p>The maximum length of |
| 155 | + * a key is 128 characters</p> </li> <li> <p>The maximum length of a value is 256 |
| 156 | + * characters</p> </li> <li> <p>Valid characters for keys and values are: |
| 157 | + * <code>A-Z</code>, <code>a-z</code>, spaces, <code>_.:/=+-</code> </p> </li> <li> |
| 158 | + * <p>Keys and values are case sensitive</p> </li> <li> <p>Keys and values are |
| 159 | + * trimmed for any leading or trailing whitespaces</p> </li> <li> <p>Don’t use |
| 160 | + * <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon |
| 161 | + * Web Services use</p> </li> </ul> |
| 162 | + */ |
| 163 | + inline CreateAnomalyMonitorRequest& WithResourceTags(const Aws::Vector<ResourceTag>& value) { SetResourceTags(value); return *this;} |
| 164 | + |
| 165 | + /** |
| 166 | + * <p> An optional list of tags to associate with the specified <a |
| 167 | + * href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html"> |
| 168 | + * <code>AnomalyMonitor</code> </a>. You can use resource tags to control access to |
| 169 | + * your monitor using IAM policies.</p> <p>Each tag consists of a key and a value, |
| 170 | + * and each key must be unique for the resource. The following restrictions apply |
| 171 | + * to resource tags:</p> <ul> <li> <p>Although the maximum number of array members |
| 172 | + * is 200, you can assign a maximum of 50 user-tags to one resource. The remaining |
| 173 | + * are reserved for Amazon Web Services use</p> </li> <li> <p>The maximum length of |
| 174 | + * a key is 128 characters</p> </li> <li> <p>The maximum length of a value is 256 |
| 175 | + * characters</p> </li> <li> <p>Valid characters for keys and values are: |
| 176 | + * <code>A-Z</code>, <code>a-z</code>, spaces, <code>_.:/=+-</code> </p> </li> <li> |
| 177 | + * <p>Keys and values are case sensitive</p> </li> <li> <p>Keys and values are |
| 178 | + * trimmed for any leading or trailing whitespaces</p> </li> <li> <p>Don’t use |
| 179 | + * <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon |
| 180 | + * Web Services use</p> </li> </ul> |
| 181 | + */ |
| 182 | + inline CreateAnomalyMonitorRequest& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;} |
| 183 | + |
| 184 | + /** |
| 185 | + * <p> An optional list of tags to associate with the specified <a |
| 186 | + * href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html"> |
| 187 | + * <code>AnomalyMonitor</code> </a>. You can use resource tags to control access to |
| 188 | + * your monitor using IAM policies.</p> <p>Each tag consists of a key and a value, |
| 189 | + * and each key must be unique for the resource. The following restrictions apply |
| 190 | + * to resource tags:</p> <ul> <li> <p>Although the maximum number of array members |
| 191 | + * is 200, you can assign a maximum of 50 user-tags to one resource. The remaining |
| 192 | + * are reserved for Amazon Web Services use</p> </li> <li> <p>The maximum length of |
| 193 | + * a key is 128 characters</p> </li> <li> <p>The maximum length of a value is 256 |
| 194 | + * characters</p> </li> <li> <p>Valid characters for keys and values are: |
| 195 | + * <code>A-Z</code>, <code>a-z</code>, spaces, <code>_.:/=+-</code> </p> </li> <li> |
| 196 | + * <p>Keys and values are case sensitive</p> </li> <li> <p>Keys and values are |
| 197 | + * trimmed for any leading or trailing whitespaces</p> </li> <li> <p>Don’t use |
| 198 | + * <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon |
| 199 | + * Web Services use</p> </li> </ul> |
| 200 | + */ |
| 201 | + inline CreateAnomalyMonitorRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; } |
| 202 | + |
| 203 | + /** |
| 204 | + * <p> An optional list of tags to associate with the specified <a |
| 205 | + * href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html"> |
| 206 | + * <code>AnomalyMonitor</code> </a>. You can use resource tags to control access to |
| 207 | + * your monitor using IAM policies.</p> <p>Each tag consists of a key and a value, |
| 208 | + * and each key must be unique for the resource. The following restrictions apply |
| 209 | + * to resource tags:</p> <ul> <li> <p>Although the maximum number of array members |
| 210 | + * is 200, you can assign a maximum of 50 user-tags to one resource. The remaining |
| 211 | + * are reserved for Amazon Web Services use</p> </li> <li> <p>The maximum length of |
| 212 | + * a key is 128 characters</p> </li> <li> <p>The maximum length of a value is 256 |
| 213 | + * characters</p> </li> <li> <p>Valid characters for keys and values are: |
| 214 | + * <code>A-Z</code>, <code>a-z</code>, spaces, <code>_.:/=+-</code> </p> </li> <li> |
| 215 | + * <p>Keys and values are case sensitive</p> </li> <li> <p>Keys and values are |
| 216 | + * trimmed for any leading or trailing whitespaces</p> </li> <li> <p>Don’t use |
| 217 | + * <code>aws:</code> as a prefix for your keys. This prefix is reserved for Amazon |
| 218 | + * Web Services use</p> </li> </ul> |
| 219 | + */ |
| 220 | + inline CreateAnomalyMonitorRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; } |
| 221 | + |
67 | 222 | private:
|
68 | 223 |
|
69 | 224 | AnomalyMonitor m_anomalyMonitor;
|
70 | 225 | bool m_anomalyMonitorHasBeenSet;
|
| 226 | + |
| 227 | + Aws::Vector<ResourceTag> m_resourceTags; |
| 228 | + bool m_resourceTagsHasBeenSet; |
71 | 229 | };
|
72 | 230 |
|
73 | 231 | } // namespace Model
|
|
0 commit comments