@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AssociatePrincipalWithPortfolioRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AssociatePrincipalWithPortfolioRequest() |
Modifier and Type | Method and Description |
---|---|
AssociatePrincipalWithPortfolioRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAcceptLanguage()
The language code.
|
String |
getPortfolioId()
The portfolio identifier.
|
String |
getPrincipalARN()
The ARN of the principal (user, role, or group).
|
String |
getPrincipalType()
The principal type.
|
int |
hashCode() |
void |
setAcceptLanguage(String acceptLanguage)
The language code.
|
void |
setPortfolioId(String portfolioId)
The portfolio identifier.
|
void |
setPrincipalARN(String principalARN)
The ARN of the principal (user, role, or group).
|
void |
setPrincipalType(PrincipalType principalType)
The principal type.
|
void |
setPrincipalType(String principalType)
The principal type.
|
String |
toString()
Returns a string representation of this object.
|
AssociatePrincipalWithPortfolioRequest |
withAcceptLanguage(String acceptLanguage)
The language code.
|
AssociatePrincipalWithPortfolioRequest |
withPortfolioId(String portfolioId)
The portfolio identifier.
|
AssociatePrincipalWithPortfolioRequest |
withPrincipalARN(String principalARN)
The ARN of the principal (user, role, or group).
|
AssociatePrincipalWithPortfolioRequest |
withPrincipalType(PrincipalType principalType)
The principal type.
|
AssociatePrincipalWithPortfolioRequest |
withPrincipalType(String principalType)
The principal type.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public AssociatePrincipalWithPortfolioRequest()
public void setAcceptLanguage(String acceptLanguage)
The language code.
jp
- Japanese
zh
- Chinese
acceptLanguage
- The language code.
jp
- Japanese
zh
- Chinese
public String getAcceptLanguage()
The language code.
jp
- Japanese
zh
- Chinese
jp
- Japanese
zh
- Chinese
public AssociatePrincipalWithPortfolioRequest withAcceptLanguage(String acceptLanguage)
The language code.
jp
- Japanese
zh
- Chinese
acceptLanguage
- The language code.
jp
- Japanese
zh
- Chinese
public void setPortfolioId(String portfolioId)
The portfolio identifier.
portfolioId
- The portfolio identifier.public String getPortfolioId()
The portfolio identifier.
public AssociatePrincipalWithPortfolioRequest withPortfolioId(String portfolioId)
The portfolio identifier.
portfolioId
- The portfolio identifier.public void setPrincipalARN(String principalARN)
The ARN of the principal (user, role, or group). This field allows an ARN with no accountID
if
PrincipalType
is IAM_PATTERN
.
You can associate multiple IAM
patterns even if the account has no principal with that name. This is
useful in Principal Name Sharing if you want to share a principal without creating it in the account that owns
the portfolio.
principalARN
- The ARN of the principal (user, role, or group). This field allows an ARN with no accountID
if PrincipalType
is IAM_PATTERN
.
You can associate multiple IAM
patterns even if the account has no principal with that name.
This is useful in Principal Name Sharing if you want to share a principal without creating it in the
account that owns the portfolio.
public String getPrincipalARN()
The ARN of the principal (user, role, or group). This field allows an ARN with no accountID
if
PrincipalType
is IAM_PATTERN
.
You can associate multiple IAM
patterns even if the account has no principal with that name. This is
useful in Principal Name Sharing if you want to share a principal without creating it in the account that owns
the portfolio.
accountID
if PrincipalType
is IAM_PATTERN
.
You can associate multiple IAM
patterns even if the account has no principal with that name.
This is useful in Principal Name Sharing if you want to share a principal without creating it in the
account that owns the portfolio.
public AssociatePrincipalWithPortfolioRequest withPrincipalARN(String principalARN)
The ARN of the principal (user, role, or group). This field allows an ARN with no accountID
if
PrincipalType
is IAM_PATTERN
.
You can associate multiple IAM
patterns even if the account has no principal with that name. This is
useful in Principal Name Sharing if you want to share a principal without creating it in the account that owns
the portfolio.
principalARN
- The ARN of the principal (user, role, or group). This field allows an ARN with no accountID
if PrincipalType
is IAM_PATTERN
.
You can associate multiple IAM
patterns even if the account has no principal with that name.
This is useful in Principal Name Sharing if you want to share a principal without creating it in the
account that owns the portfolio.
public void setPrincipalType(String principalType)
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
principalType
- The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public String getPrincipalType()
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public AssociatePrincipalWithPortfolioRequest withPrincipalType(String principalType)
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
principalType
- The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public void setPrincipalType(PrincipalType principalType)
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
principalType
- The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public AssociatePrincipalWithPortfolioRequest withPrincipalType(PrincipalType principalType)
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
principalType
- The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public String toString()
toString
in class Object
Object.toString()
public AssociatePrincipalWithPortfolioRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()