public static final class AwsMetadata.AwsOrganizationalUnit.Builder extends GeneratedMessageV3.Builder<AwsMetadata.AwsOrganizationalUnit.Builder> implements AwsMetadata.AwsOrganizationalUnitOrBuilder
An Organizational Unit (OU) is a container of AWS accounts within a root of
an organization. Policies that are attached to an OU apply to all accounts
contained in that OU and in any child OUs.
Protobuf type google.cloud.securitycenter.v2.AwsMetadata.AwsOrganizationalUnit
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public AwsMetadata.AwsOrganizationalUnit.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AwsMetadata.AwsOrganizationalUnit build()
public AwsMetadata.AwsOrganizationalUnit buildPartial()
public AwsMetadata.AwsOrganizationalUnit.Builder clear()
Overrides
public AwsMetadata.AwsOrganizationalUnit.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public AwsMetadata.AwsOrganizationalUnit.Builder clearId()
The unique identifier (ID) associated with this OU. The regex pattern for
an organizational unit ID string requires "ou-" followed by from 4 to 32
lowercase letters or digits (the ID of the root that contains the OU).
This string is followed by a second "-" dash and from 8 to 32 additional
lowercase letters or digits. For example, "ou-ab12-cd34ef56".
string id = 1;
public AwsMetadata.AwsOrganizationalUnit.Builder clearName()
The friendly name of the OU.
string name = 2;
public AwsMetadata.AwsOrganizationalUnit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public AwsMetadata.AwsOrganizationalUnit.Builder clone()
Overrides
public AwsMetadata.AwsOrganizationalUnit getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
The unique identifier (ID) associated with this OU. The regex pattern for
an organizational unit ID string requires "ou-" followed by from 4 to 32
lowercase letters or digits (the ID of the root that contains the OU).
This string is followed by a second "-" dash and from 8 to 32 additional
lowercase letters or digits. For example, "ou-ab12-cd34ef56".
string id = 1;
Returns |
Type |
Description |
String |
The id.
|
public ByteString getIdBytes()
The unique identifier (ID) associated with this OU. The regex pattern for
an organizational unit ID string requires "ou-" followed by from 4 to 32
lowercase letters or digits (the ID of the root that contains the OU).
This string is followed by a second "-" dash and from 8 to 32 additional
lowercase letters or digits. For example, "ou-ab12-cd34ef56".
string id = 1;
Returns |
Type |
Description |
ByteString |
The bytes for id.
|
The friendly name of the OU.
string name = 2;
Returns |
Type |
Description |
String |
The name.
|
public ByteString getNameBytes()
The friendly name of the OU.
string name = 2;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AwsMetadata.AwsOrganizationalUnit.Builder mergeFrom(AwsMetadata.AwsOrganizationalUnit other)
public AwsMetadata.AwsOrganizationalUnit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AwsMetadata.AwsOrganizationalUnit.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final AwsMetadata.AwsOrganizationalUnit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public AwsMetadata.AwsOrganizationalUnit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public AwsMetadata.AwsOrganizationalUnit.Builder setId(String value)
The unique identifier (ID) associated with this OU. The regex pattern for
an organizational unit ID string requires "ou-" followed by from 4 to 32
lowercase letters or digits (the ID of the root that contains the OU).
This string is followed by a second "-" dash and from 8 to 32 additional
lowercase letters or digits. For example, "ou-ab12-cd34ef56".
string id = 1;
Parameter |
Name |
Description |
value |
String
The id to set.
|
public AwsMetadata.AwsOrganizationalUnit.Builder setIdBytes(ByteString value)
The unique identifier (ID) associated with this OU. The regex pattern for
an organizational unit ID string requires "ou-" followed by from 4 to 32
lowercase letters or digits (the ID of the root that contains the OU).
This string is followed by a second "-" dash and from 8 to 32 additional
lowercase letters or digits. For example, "ou-ab12-cd34ef56".
string id = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for id to set.
|
public AwsMetadata.AwsOrganizationalUnit.Builder setName(String value)
The friendly name of the OU.
string name = 2;
Parameter |
Name |
Description |
value |
String
The name to set.
|
public AwsMetadata.AwsOrganizationalUnit.Builder setNameBytes(ByteString value)
The friendly name of the OU.
string name = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for name to set.
|
public AwsMetadata.AwsOrganizationalUnit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final AwsMetadata.AwsOrganizationalUnit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides