Generate SDK by new Generator
This commit is contained in:
@@ -35,13 +35,9 @@ AddUserToGroupResult::~AddUserToGroupResult()
|
||||
|
||||
void AddUserToGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -36,17 +36,6 @@ void AttachPolicyToGroupRequest::setPolicyType(const std::string& policyType)
|
||||
setCoreParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string AttachPolicyToGroupRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void AttachPolicyToGroupRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setCoreParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
std::string AttachPolicyToGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
@@ -58,3 +47,14 @@ void AttachPolicyToGroupRequest::setGroupName(const std::string& groupName)
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string AttachPolicyToGroupRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void AttachPolicyToGroupRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setCoreParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ AttachPolicyToGroupResult::~AttachPolicyToGroupResult()
|
||||
|
||||
void AttachPolicyToGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ AttachPolicyToRoleResult::~AttachPolicyToRoleResult()
|
||||
|
||||
void AttachPolicyToRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ AttachPolicyToUserResult::~AttachPolicyToUserResult()
|
||||
|
||||
void AttachPolicyToUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ BindMFADeviceResult::~BindMFADeviceResult()
|
||||
|
||||
void BindMFADeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ ChangePasswordResult::~ChangePasswordResult()
|
||||
|
||||
void ChangePasswordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ ClearAccountAliasResult::~ClearAccountAliasResult()
|
||||
|
||||
void ClearAccountAliasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateAccessKeyResult::~CreateAccessKeyResult()
|
||||
|
||||
void CreateAccessKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accessKeyNode = value["AccessKey"];
|
||||
if(!accessKeyNode["AccessKeyId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateGroupResult::~CreateGroupResult()
|
||||
|
||||
void CreateGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupNode = value["Group"];
|
||||
if(!groupNode["GroupName"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ CreateLoginProfileRequest::CreateLoginProfileRequest() :
|
||||
CreateLoginProfileRequest::~CreateLoginProfileRequest()
|
||||
{}
|
||||
|
||||
std::string CreateLoginProfileRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateLoginProfileRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setCoreParameter("Password", password);
|
||||
}
|
||||
|
||||
bool CreateLoginProfileRequest::getPasswordResetRequired()const
|
||||
{
|
||||
return passwordResetRequired_;
|
||||
@@ -47,6 +36,17 @@ void CreateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequi
|
||||
setCoreParameter("PasswordResetRequired", passwordResetRequired ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLoginProfileRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateLoginProfileRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setCoreParameter("Password", password);
|
||||
}
|
||||
|
||||
bool CreateLoginProfileRequest::getMFABindRequired()const
|
||||
{
|
||||
return mFABindRequired_;
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateLoginProfileResult::~CreateLoginProfileResult()
|
||||
|
||||
void CreateLoginProfileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto loginProfileNode = value["LoginProfile"];
|
||||
if(!loginProfileNode["UserName"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ CreatePolicyResult::~CreatePolicyResult()
|
||||
|
||||
void CreatePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyNode = value["Policy"];
|
||||
if(!policyNode["PolicyName"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ CreatePolicyVersionResult::~CreatePolicyVersionResult()
|
||||
|
||||
void CreatePolicyVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyVersionNode = value["PolicyVersion"];
|
||||
if(!policyVersionNode["VersionId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateRoleResult::~CreateRoleResult()
|
||||
|
||||
void CreateRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
|
||||
@@ -25,28 +25,6 @@ CreateUserRequest::CreateUserRequest() :
|
||||
CreateUserRequest::~CreateUserRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUserRequest::getComments()const
|
||||
{
|
||||
return comments_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setComments(const std::string& comments)
|
||||
{
|
||||
comments_ = comments;
|
||||
setCoreParameter("Comments", comments);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setCoreParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getMobilePhone()const
|
||||
{
|
||||
return mobilePhone_;
|
||||
@@ -69,6 +47,28 @@ void CreateUserRequest::setEmail(const std::string& email)
|
||||
setCoreParameter("Email", email);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getComments()const
|
||||
{
|
||||
return comments_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setComments(const std::string& comments)
|
||||
{
|
||||
comments_ = comments;
|
||||
setCoreParameter("Comments", comments);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getDisplayName()const
|
||||
{
|
||||
return displayName_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setDisplayName(const std::string& displayName)
|
||||
{
|
||||
displayName_ = displayName;
|
||||
setCoreParameter("DisplayName", displayName);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateUserResult::~CreateUserResult()
|
||||
|
||||
void CreateUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userNode = value["User"];
|
||||
if(!userNode["UserId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateVirtualMFADeviceResult::~CreateVirtualMFADeviceResult()
|
||||
|
||||
void CreateVirtualMFADeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto virtualMFADeviceNode = value["VirtualMFADevice"];
|
||||
if(!virtualMFADeviceNode["SerialNumber"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteAccessKeyResult::~DeleteAccessKeyResult()
|
||||
|
||||
void DeleteAccessKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteGroupResult::~DeleteGroupResult()
|
||||
|
||||
void DeleteGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteLoginProfileResult::~DeleteLoginProfileResult()
|
||||
|
||||
void DeleteLoginProfileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DeletePolicyResult::~DeletePolicyResult()
|
||||
|
||||
void DeletePolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DeletePolicyVersionResult::~DeletePolicyVersionResult()
|
||||
|
||||
void DeletePolicyVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteRoleResult::~DeleteRoleResult()
|
||||
|
||||
void DeleteRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteUserResult::~DeleteUserResult()
|
||||
|
||||
void DeleteUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteVirtualMFADeviceResult::~DeleteVirtualMFADeviceResult()
|
||||
|
||||
void DeleteVirtualMFADeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -36,17 +36,6 @@ void DetachPolicyFromGroupRequest::setPolicyType(const std::string& policyType)
|
||||
setCoreParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string DetachPolicyFromGroupRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void DetachPolicyFromGroupRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setCoreParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
std::string DetachPolicyFromGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
@@ -58,3 +47,14 @@ void DetachPolicyFromGroupRequest::setGroupName(const std::string& groupName)
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string DetachPolicyFromGroupRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void DetachPolicyFromGroupRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setCoreParameter("PolicyName", policyName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DetachPolicyFromGroupResult::~DetachPolicyFromGroupResult()
|
||||
|
||||
void DetachPolicyFromGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DetachPolicyFromRoleResult::~DetachPolicyFromRoleResult()
|
||||
|
||||
void DetachPolicyFromRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ DetachPolicyFromUserResult::~DetachPolicyFromUserResult()
|
||||
|
||||
void DetachPolicyFromUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ GetAccessKeyLastUsedResult::~GetAccessKeyLastUsedResult()
|
||||
|
||||
void GetAccessKeyLastUsedResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accessKeyLastUsedNode = value["AccessKeyLastUsed"];
|
||||
if(!accessKeyLastUsedNode["LastUsedDate"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetAccountAliasResult::~GetAccountAliasResult()
|
||||
|
||||
void GetAccountAliasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AccountAlias"].isNull())
|
||||
accountAlias_ = value["AccountAlias"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ GetGroupResult::~GetGroupResult()
|
||||
|
||||
void GetGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupNode = value["Group"];
|
||||
if(!groupNode["GroupName"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetLoginProfileResult::~GetLoginProfileResult()
|
||||
|
||||
void GetLoginProfileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto loginProfileNode = value["LoginProfile"];
|
||||
if(!loginProfileNode["UserName"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetPasswordPolicyResult::~GetPasswordPolicyResult()
|
||||
|
||||
void GetPasswordPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto passwordPolicyNode = value["PasswordPolicy"];
|
||||
if(!passwordPolicyNode["MinimumPasswordLength"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetPolicyResult::~GetPolicyResult()
|
||||
|
||||
void GetPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyNode = value["Policy"];
|
||||
if(!policyNode["PolicyName"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ GetPolicyVersionRequest::GetPolicyVersionRequest() :
|
||||
GetPolicyVersionRequest::~GetPolicyVersionRequest()
|
||||
{}
|
||||
|
||||
std::string GetPolicyVersionRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void GetPolicyVersionRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setCoreParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
std::string GetPolicyVersionRequest::getPolicyType()const
|
||||
{
|
||||
return policyType_;
|
||||
@@ -47,6 +36,17 @@ void GetPolicyVersionRequest::setPolicyType(const std::string& policyType)
|
||||
setCoreParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string GetPolicyVersionRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void GetPolicyVersionRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setCoreParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
std::string GetPolicyVersionRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
|
||||
@@ -35,13 +35,9 @@ GetPolicyVersionResult::~GetPolicyVersionResult()
|
||||
|
||||
void GetPolicyVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto policyVersionNode = value["PolicyVersion"];
|
||||
if(!policyVersionNode["VersionId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetRoleResult::~GetRoleResult()
|
||||
|
||||
void GetRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetSecurityPreferenceResult::~GetSecurityPreferenceResult()
|
||||
|
||||
void GetSecurityPreferenceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto securityPreferenceNode = value["SecurityPreference"];
|
||||
auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"];
|
||||
|
||||
@@ -35,13 +35,9 @@ GetUserMFAInfoResult::~GetUserMFAInfoResult()
|
||||
|
||||
void GetUserMFAInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto mFADeviceNode = value["MFADevice"];
|
||||
if(!mFADeviceNode["SerialNumber"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetUserResult::~GetUserResult()
|
||||
|
||||
void GetUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userNode = value["User"];
|
||||
if(!userNode["UserId"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ ListAccessKeysResult::~ListAccessKeysResult()
|
||||
|
||||
void ListAccessKeysResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAccessKeys = value["AccessKeys"]["AccessKey"];
|
||||
for (auto value : allAccessKeys)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListEntitiesForPolicyResult::~ListEntitiesForPolicyResult()
|
||||
|
||||
void ListEntitiesForPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGroups = value["Groups"]["Group"];
|
||||
for (auto value : allGroups)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListGroupsForUserResult::~ListGroupsForUserResult()
|
||||
|
||||
void ListGroupsForUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGroups = value["Groups"]["Group"];
|
||||
for (auto value : allGroups)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListGroupsResult::~ListGroupsResult()
|
||||
|
||||
void ListGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGroups = value["Groups"]["Group"];
|
||||
for (auto value : allGroups)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListPoliciesForGroupResult::~ListPoliciesForGroupResult()
|
||||
|
||||
void ListPoliciesForGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicies = value["Policies"]["Policy"];
|
||||
for (auto value : allPolicies)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListPoliciesForRoleResult::~ListPoliciesForRoleResult()
|
||||
|
||||
void ListPoliciesForRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicies = value["Policies"]["Policy"];
|
||||
for (auto value : allPolicies)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListPoliciesForUserResult::~ListPoliciesForUserResult()
|
||||
|
||||
void ListPoliciesForUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicies = value["Policies"]["Policy"];
|
||||
for (auto value : allPolicies)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListPoliciesResult::~ListPoliciesResult()
|
||||
|
||||
void ListPoliciesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicies = value["Policies"]["Policy"];
|
||||
for (auto value : allPolicies)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListPolicyVersionsResult::~ListPolicyVersionsResult()
|
||||
|
||||
void ListPolicyVersionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPolicyVersions = value["PolicyVersions"]["PolicyVersion"];
|
||||
for (auto value : allPolicyVersions)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListRolesResult::~ListRolesResult()
|
||||
|
||||
void ListRolesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRoles = value["Roles"]["Role"];
|
||||
for (auto value : allRoles)
|
||||
|
||||
@@ -25,6 +25,17 @@ ListUsersForGroupRequest::ListUsersForGroupRequest() :
|
||||
ListUsersForGroupRequest::~ListUsersForGroupRequest()
|
||||
{}
|
||||
|
||||
std::string ListUsersForGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void ListUsersForGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string ListUsersForGroupRequest::getMarker()const
|
||||
{
|
||||
return marker_;
|
||||
@@ -47,14 +58,3 @@ void ListUsersForGroupRequest::setMaxItems(int maxItems)
|
||||
setCoreParameter("MaxItems", std::to_string(maxItems));
|
||||
}
|
||||
|
||||
std::string ListUsersForGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void ListUsersForGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ ListUsersForGroupResult::~ListUsersForGroupResult()
|
||||
|
||||
void ListUsersForGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsers = value["Users"]["User"];
|
||||
for (auto value : allUsers)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListUsersResult::~ListUsersResult()
|
||||
|
||||
void ListUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsers = value["Users"]["User"];
|
||||
for (auto value : allUsers)
|
||||
|
||||
@@ -35,13 +35,9 @@ ListVirtualMFADevicesResult::~ListVirtualMFADevicesResult()
|
||||
|
||||
void ListVirtualMFADevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVirtualMFADevices = value["VirtualMFADevices"]["VirtualMFADevice"];
|
||||
for (auto value : allVirtualMFADevices)
|
||||
|
||||
@@ -35,13 +35,9 @@ RemoveUserFromGroupResult::~RemoveUserFromGroupResult()
|
||||
|
||||
void RemoveUserFromGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ SetAccountAliasResult::~SetAccountAliasResult()
|
||||
|
||||
void SetAccountAliasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ SetDefaultPolicyVersionResult::~SetDefaultPolicyVersionResult()
|
||||
|
||||
void SetDefaultPolicyVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,17 +25,6 @@ SetPasswordPolicyRequest::SetPasswordPolicyRequest() :
|
||||
SetPasswordPolicyRequest::~SetPasswordPolicyRequest()
|
||||
{}
|
||||
|
||||
bool SetPasswordPolicyRequest::getRequireNumbers()const
|
||||
{
|
||||
return requireNumbers_;
|
||||
}
|
||||
|
||||
void SetPasswordPolicyRequest::setRequireNumbers(bool requireNumbers)
|
||||
{
|
||||
requireNumbers_ = requireNumbers;
|
||||
setCoreParameter("RequireNumbers", requireNumbers ? "true" : "false");
|
||||
}
|
||||
|
||||
int SetPasswordPolicyRequest::getPasswordReusePrevention()const
|
||||
{
|
||||
return passwordReusePrevention_;
|
||||
@@ -58,6 +47,39 @@ void SetPasswordPolicyRequest::setRequireUppercaseCharacters(bool requireUpperca
|
||||
setCoreParameter("RequireUppercaseCharacters", requireUppercaseCharacters ? "true" : "false");
|
||||
}
|
||||
|
||||
int SetPasswordPolicyRequest::getMinimumPasswordLength()const
|
||||
{
|
||||
return minimumPasswordLength_;
|
||||
}
|
||||
|
||||
void SetPasswordPolicyRequest::setMinimumPasswordLength(int minimumPasswordLength)
|
||||
{
|
||||
minimumPasswordLength_ = minimumPasswordLength;
|
||||
setCoreParameter("MinimumPasswordLength", std::to_string(minimumPasswordLength));
|
||||
}
|
||||
|
||||
bool SetPasswordPolicyRequest::getRequireNumbers()const
|
||||
{
|
||||
return requireNumbers_;
|
||||
}
|
||||
|
||||
void SetPasswordPolicyRequest::setRequireNumbers(bool requireNumbers)
|
||||
{
|
||||
requireNumbers_ = requireNumbers;
|
||||
setCoreParameter("RequireNumbers", requireNumbers ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SetPasswordPolicyRequest::getRequireLowercaseCharacters()const
|
||||
{
|
||||
return requireLowercaseCharacters_;
|
||||
}
|
||||
|
||||
void SetPasswordPolicyRequest::setRequireLowercaseCharacters(bool requireLowercaseCharacters)
|
||||
{
|
||||
requireLowercaseCharacters_ = requireLowercaseCharacters;
|
||||
setCoreParameter("RequireLowercaseCharacters", requireLowercaseCharacters ? "true" : "false");
|
||||
}
|
||||
|
||||
int SetPasswordPolicyRequest::getMaxPasswordAge()const
|
||||
{
|
||||
return maxPasswordAge_;
|
||||
@@ -91,28 +113,6 @@ void SetPasswordPolicyRequest::setHardExpiry(bool hardExpiry)
|
||||
setCoreParameter("HardExpiry", hardExpiry ? "true" : "false");
|
||||
}
|
||||
|
||||
int SetPasswordPolicyRequest::getMinimumPasswordLength()const
|
||||
{
|
||||
return minimumPasswordLength_;
|
||||
}
|
||||
|
||||
void SetPasswordPolicyRequest::setMinimumPasswordLength(int minimumPasswordLength)
|
||||
{
|
||||
minimumPasswordLength_ = minimumPasswordLength;
|
||||
setCoreParameter("MinimumPasswordLength", std::to_string(minimumPasswordLength));
|
||||
}
|
||||
|
||||
bool SetPasswordPolicyRequest::getRequireLowercaseCharacters()const
|
||||
{
|
||||
return requireLowercaseCharacters_;
|
||||
}
|
||||
|
||||
void SetPasswordPolicyRequest::setRequireLowercaseCharacters(bool requireLowercaseCharacters)
|
||||
{
|
||||
requireLowercaseCharacters_ = requireLowercaseCharacters;
|
||||
setCoreParameter("RequireLowercaseCharacters", requireLowercaseCharacters ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SetPasswordPolicyRequest::getRequireSymbols()const
|
||||
{
|
||||
return requireSymbols_;
|
||||
|
||||
@@ -35,13 +35,9 @@ SetPasswordPolicyResult::~SetPasswordPolicyResult()
|
||||
|
||||
void SetPasswordPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto passwordPolicyNode = value["PasswordPolicy"];
|
||||
if(!passwordPolicyNode["MinimumPasswordLength"].isNull())
|
||||
|
||||
@@ -25,39 +25,6 @@ SetSecurityPreferenceRequest::SetSecurityPreferenceRequest() :
|
||||
SetSecurityPreferenceRequest::~SetSecurityPreferenceRequest()
|
||||
{}
|
||||
|
||||
bool SetSecurityPreferenceRequest::getAllowUserToManageAccessKeys()const
|
||||
{
|
||||
return allowUserToManageAccessKeys_;
|
||||
}
|
||||
|
||||
void SetSecurityPreferenceRequest::setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys)
|
||||
{
|
||||
allowUserToManageAccessKeys_ = allowUserToManageAccessKeys;
|
||||
setCoreParameter("AllowUserToManageAccessKeys", allowUserToManageAccessKeys ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SetSecurityPreferenceRequest::getAllowUserToManageMFADevices()const
|
||||
{
|
||||
return allowUserToManageMFADevices_;
|
||||
}
|
||||
|
||||
void SetSecurityPreferenceRequest::setAllowUserToManageMFADevices(bool allowUserToManageMFADevices)
|
||||
{
|
||||
allowUserToManageMFADevices_ = allowUserToManageMFADevices;
|
||||
setCoreParameter("AllowUserToManageMFADevices", allowUserToManageMFADevices ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SetSecurityPreferenceRequest::getAllowUserToManagePublicKeys()const
|
||||
{
|
||||
return allowUserToManagePublicKeys_;
|
||||
}
|
||||
|
||||
void SetSecurityPreferenceRequest::setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys)
|
||||
{
|
||||
allowUserToManagePublicKeys_ = allowUserToManagePublicKeys;
|
||||
setCoreParameter("AllowUserToManagePublicKeys", allowUserToManagePublicKeys ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SetSecurityPreferenceRequest::getEnableSaveMFATicket()const
|
||||
{
|
||||
return enableSaveMFATicket_;
|
||||
@@ -91,6 +58,17 @@ void SetSecurityPreferenceRequest::setAllowUserToChangePassword(bool allowUserTo
|
||||
setCoreParameter("AllowUserToChangePassword", allowUserToChangePassword ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SetSecurityPreferenceRequest::getAllowUserToManagePublicKeys()const
|
||||
{
|
||||
return allowUserToManagePublicKeys_;
|
||||
}
|
||||
|
||||
void SetSecurityPreferenceRequest::setAllowUserToManagePublicKeys(bool allowUserToManagePublicKeys)
|
||||
{
|
||||
allowUserToManagePublicKeys_ = allowUserToManagePublicKeys;
|
||||
setCoreParameter("AllowUserToManagePublicKeys", allowUserToManagePublicKeys ? "true" : "false");
|
||||
}
|
||||
|
||||
int SetSecurityPreferenceRequest::getLoginSessionDuration()const
|
||||
{
|
||||
return loginSessionDuration_;
|
||||
@@ -102,3 +80,25 @@ void SetSecurityPreferenceRequest::setLoginSessionDuration(int loginSessionDurat
|
||||
setCoreParameter("LoginSessionDuration", std::to_string(loginSessionDuration));
|
||||
}
|
||||
|
||||
bool SetSecurityPreferenceRequest::getAllowUserToManageAccessKeys()const
|
||||
{
|
||||
return allowUserToManageAccessKeys_;
|
||||
}
|
||||
|
||||
void SetSecurityPreferenceRequest::setAllowUserToManageAccessKeys(bool allowUserToManageAccessKeys)
|
||||
{
|
||||
allowUserToManageAccessKeys_ = allowUserToManageAccessKeys;
|
||||
setCoreParameter("AllowUserToManageAccessKeys", allowUserToManageAccessKeys ? "true" : "false");
|
||||
}
|
||||
|
||||
bool SetSecurityPreferenceRequest::getAllowUserToManageMFADevices()const
|
||||
{
|
||||
return allowUserToManageMFADevices_;
|
||||
}
|
||||
|
||||
void SetSecurityPreferenceRequest::setAllowUserToManageMFADevices(bool allowUserToManageMFADevices)
|
||||
{
|
||||
allowUserToManageMFADevices_ = allowUserToManageMFADevices;
|
||||
setCoreParameter("AllowUserToManageMFADevices", allowUserToManageMFADevices ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ SetSecurityPreferenceResult::~SetSecurityPreferenceResult()
|
||||
|
||||
void SetSecurityPreferenceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto securityPreferenceNode = value["SecurityPreference"];
|
||||
auto loginProfilePreferenceNode = securityPreferenceNode["LoginProfilePreference"];
|
||||
|
||||
@@ -35,13 +35,9 @@ UnbindMFADeviceResult::~UnbindMFADeviceResult()
|
||||
|
||||
void UnbindMFADeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto mFADeviceNode = value["MFADevice"];
|
||||
if(!mFADeviceNode["SerialNumber"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ UpdateAccessKeyResult::~UpdateAccessKeyResult()
|
||||
|
||||
void UpdateAccessKeyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -25,6 +25,17 @@ UpdateGroupRequest::UpdateGroupRequest() :
|
||||
UpdateGroupRequest::~UpdateGroupRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void UpdateGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string UpdateGroupRequest::getNewGroupName()const
|
||||
{
|
||||
return newGroupName_;
|
||||
@@ -47,14 +58,3 @@ void UpdateGroupRequest::setNewComments(const std::string& newComments)
|
||||
setCoreParameter("NewComments", newComments);
|
||||
}
|
||||
|
||||
std::string UpdateGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void UpdateGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setCoreParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ UpdateGroupResult::~UpdateGroupResult()
|
||||
|
||||
void UpdateGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto groupNode = value["Group"];
|
||||
if(!groupNode["GroupName"].isNull())
|
||||
|
||||
@@ -25,17 +25,6 @@ UpdateLoginProfileRequest::UpdateLoginProfileRequest() :
|
||||
UpdateLoginProfileRequest::~UpdateLoginProfileRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateLoginProfileRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void UpdateLoginProfileRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setCoreParameter("Password", password);
|
||||
}
|
||||
|
||||
bool UpdateLoginProfileRequest::getPasswordResetRequired()const
|
||||
{
|
||||
return passwordResetRequired_;
|
||||
@@ -47,6 +36,17 @@ void UpdateLoginProfileRequest::setPasswordResetRequired(bool passwordResetRequi
|
||||
setCoreParameter("PasswordResetRequired", passwordResetRequired ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateLoginProfileRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void UpdateLoginProfileRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setCoreParameter("Password", password);
|
||||
}
|
||||
|
||||
bool UpdateLoginProfileRequest::getMFABindRequired()const
|
||||
{
|
||||
return mFABindRequired_;
|
||||
|
||||
@@ -35,13 +35,9 @@ UpdateLoginProfileResult::~UpdateLoginProfileResult()
|
||||
|
||||
void UpdateLoginProfileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -35,13 +35,9 @@ UpdateRoleResult::~UpdateRoleResult()
|
||||
|
||||
void UpdateRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto roleNode = value["Role"];
|
||||
if(!roleNode["RoleId"].isNull())
|
||||
|
||||
@@ -36,17 +36,6 @@ void UpdateUserRequest::setNewUserName(const std::string& newUserName)
|
||||
setCoreParameter("NewUserName", newUserName);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getNewDisplayName()const
|
||||
{
|
||||
return newDisplayName_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setNewDisplayName(const std::string& newDisplayName)
|
||||
{
|
||||
newDisplayName_ = newDisplayName;
|
||||
setCoreParameter("NewDisplayName", newDisplayName);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getNewMobilePhone()const
|
||||
{
|
||||
return newMobilePhone_;
|
||||
@@ -58,17 +47,6 @@ void UpdateUserRequest::setNewMobilePhone(const std::string& newMobilePhone)
|
||||
setCoreParameter("NewMobilePhone", newMobilePhone);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getNewComments()const
|
||||
{
|
||||
return newComments_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setNewComments(const std::string& newComments)
|
||||
{
|
||||
newComments_ = newComments;
|
||||
setCoreParameter("NewComments", newComments);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getNewEmail()const
|
||||
{
|
||||
return newEmail_;
|
||||
@@ -80,6 +58,28 @@ void UpdateUserRequest::setNewEmail(const std::string& newEmail)
|
||||
setCoreParameter("NewEmail", newEmail);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getNewDisplayName()const
|
||||
{
|
||||
return newDisplayName_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setNewDisplayName(const std::string& newDisplayName)
|
||||
{
|
||||
newDisplayName_ = newDisplayName;
|
||||
setCoreParameter("NewDisplayName", newDisplayName);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getNewComments()const
|
||||
{
|
||||
return newComments_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setNewComments(const std::string& newComments)
|
||||
{
|
||||
newComments_ = newComments;
|
||||
setCoreParameter("NewComments", newComments);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
|
||||
@@ -35,13 +35,9 @@ UpdateUserResult::~UpdateUserResult()
|
||||
|
||||
void UpdateUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userNode = value["User"];
|
||||
if(!userNode["UserId"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user